[NTLUG:Discuss] Apache question
Joe Torma
Joe at domainworldaccess.com
Fri Jul 4 11:48:43 CDT 2008
From: http://httpd.apache.org/docs/2.0/vhosts/examples.html
Running different sites on different ports.
You have multiple domains going to the same IP and also want to serve
multiple ports. By defining the ports in the "NameVirtualHost" tag, you can
allow this to work. If you try using <VirtualHost name:port> without the
NameVirtualHost name:port or you try to use the Listen directive, your
configuration will not work.
Server configuration
Listen 80
Listen 8080
NameVirtualHost 172.20.30.40:80
NameVirtualHost 172.20.30.40:8080
<VirtualHost 172.20.30.40:80>
ServerName www.example1.com
DocumentRoot /www/domain-80
</VirtualHost>
<VirtualHost 172.20.30.40:8080>
ServerName www.example1.com
DocumentRoot /www/domain-8080
</VirtualHost>
<VirtualHost 172.20.30.40:80>
ServerName www.example2.org
DocumentRoot /www/otherdomain-80
</VirtualHost>
<VirtualHost 172.20.30.40:8080>
ServerName www.example2.org
DocumentRoot /www/otherdomain-8080
</VirtualHost>
> -----Original Message-----
> From: discuss-bounces at ntlug.org [mailto:discuss-bounces at ntlug.org] On
> Behalf Of Fred
> Sent: Tuesday, July 01, 2008 11:35 AM
> To: discuss at ntlug.org
> Subject: [NTLUG:Discuss] Apache question
>
> I am having trouble understanding as I RTFM on Apache.
> I am trying to serve 2 webpages from the Apache box,
> one to port 80 and the other on port 8080. That is where
> the confusion sets in... it seems that all the howtos say
> multiple addresses, multiple domains or single address,
> multiple domains. Nothing about multiple domains and
> single IP address with multiple ports.
>
> Any insight would be most appreciated.
>
> Thanks,
> Fred
>
>
>
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
More information about the Discuss
mailing list