[Cialug] Virtual hosts in Apache

Tim Wilson tim_linux at wilson-home.com
Fri Jun 1 11:51:27 CDT 2007


Ahh, that was my problem.  I only have one Listen directive.  I didn't know
you could have more than one.  I also have a Port directive, do I need this,
will it get in the way, should I remove it?

On 6/1/07, Jeffrey C. Ollie <jeff at ocjtech.us> wrote:
>
> On Fri, 2007-06-01 at 11:35 -0500, Tim Wilson 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?
>
> Listen 80
> Listen 8080
>
> NameVirtualHost *:80
> NameVirtualHost *:8080
>
> <VirtualHost *:80>
> ServerName ipaddr.isp.com
>
> </VirtualHost>
>
> <VirtualHost *:8080>
> ServerName foo.com
>
> </VirtualHost>
>
> <VirtualHost *:8080>
> ServerName bar.com
>
> </VirtualHost>
>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>
>
>


-- 
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/cialug/attachments/20070601/4b0f53bc/attachment.htm


More information about the Cialug mailing list