Virtual Hosting Problems

Jonathan Hutchins hutchins at tarcanfel.org
Wed Apr 16 15:32:25 CDT 2003


Try commenting out the "NameVirtualHost" line.
-- 
Live from Andover, England

Quoting jose sanchez <j_r_sanchez at yahoo.com>:

> 
> --- Jonathan Hutchins <hutchins at tarcanfel.org> wrote:
> > As adam said, I would replace the explicit IP
> > numbers with asterisks for now.  
> > That feature is most useful when you select virtual
> > host by IP.
> > 
> > I'm not familiar with the "NameVirtualHost" feature,
> > but if I'm not mistaken it 
> > looks like it's bumping your virtual hosts to
> > alternate ports - ports 1000-
> > 1026, which might explain why you can't reach them. 
> > On my multi-host system I 
> > did this without that parameter and it works just
> > fine.  Mine is firewalled but 
> > not NAT'ed, which shouldn't make a difference.
> 
> 
> Ok, I've changed it back to the *'s:
> 
> NameVirtualHost *
> 
> <VirtualHost *>
>    DocumentRoot /home/http/default
>    .....
> </VirtualHost>
> 
> <VirtualHost *>
>    ServerName www.kcmultiservice.com
>    .....
> </VirtualHost>
>                  ....
> <VirtualHost *>
>    ServerName www.kcmultiservices.com
>    .....
> </VirtualHost>
> 
> <VirtualHost *>
>    ServerName www.albertopujols.com
>    .....
> </VirtualHost>
> 
> Still not working. I get the default or the first
> VirtualHost all the time.
> 
> This looks good:
> 
> www:/usr/apache/conf# ../bin/httpd -S
> VirtualHost configuration:
> wildcard NameVirtualHosts and _default_ servers:
> *:80                   is a NameVirtualHost
>                        default server whmicro-testinG
> (/usr/apache/conf/httpd.conf:995)
>                        port 80 namevhost
> whmicro-testinG (/usr/apache/conf/httpd.conf:995)
>                        port 80 namevhost
> www.kcmultiservice.com
> (/usr/apache/conf/httpd.conf:1000)
>                        port 80 namevhost
> kcmultiservice.com (/usr/apache/conf/httpd.conf:1008)
>                        port 80 namevhost
> www.bluekc.com (/usr/apache/conf/httpd.conf:1018)
>                        port 80 namevhost
> www.albertopujols.com
> (/usr/apache/conf/httpd.conf:1026)
> 
> I don't know what else to try. I'm hopeless and frustrated.
> 
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.com
> 

---------------------------------------------------
This mail sent through tarcanfel's horde/imp system




More information about the Kclug mailing list