[Cialug] Virtual hosts in Apache
    Matthew Nuzum 
    matthew.nuzum at canonical.com
       
    Fri Jun  1 11:50:24 CDT 2007
    
    
  
On 6/1/07, Tim Wilson <tim_linux at wilson-home.com> wrote:
>
> I thought I've seen this done, but I can't seem to find it.  I want to run
> multiple domains, but I want to do it on different ports.  For example,
> ipaddr.isp.com on port 8080, but foo.com and bar.com and port 80.  Can
> someone point me in the right direction?
>
I think this is what you need:
Listen 80
Listen 8080
<VirtualHost ip.address:80>
  ServerName foo.com
  ...
</VirtualHost>
<VirtualHost ip.address:80>
  ServerName bar.com>
  ...
</VirtualHost>
<VirtualHost ip.address:8080>
  ServerName ipaddr.isp.com
  ...
</VirtualHost>
-- 
Matthew Nuzum
newz2000 on freenode
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/cialug/attachments/20070601/ea7b7e9a/attachment.html
    
    
More information about the Cialug
mailing list