[NTLUG:Discuss] Apache question

Carl Haddick sysmail at glade.net
Fri Jul 4 10:25:07 CDT 2008


The virtualhost directive lets you specify a port.

<VirtualHost 192.168.0.1:80>
  ServerName www.whereever.com
  blah...
</VirtualHost>

<VirtualHost 192.168.0.1:8080>
  ServerName site2.whereever.com
  blah...
</VirtualHost>

That's how I've always done it, anyway.  Seems to work.

Carl

On Tue, Jul 01, 2008 at 09:37:37AM -0700, Fred wrote:
> The reason I want it that way instead of everything coming
> in on port 80 is that I plan to run an e-commerce site on
> one of those domains.
> 
> Fred
> 
> ----- Original Message ----
> From: Fred <fredstevens at yahoo.com>
> To: discuss at ntlug.org
> Sent: Tuesday, July 1, 2008 11:35:26 AM
> Subject: 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