Using a wildcard for the IP address is perfectly fine. The problem is as you 
point out, the fact that the first virtual host is not the named one, and since 
it is the first, all requests will be processed according to the rules within 
that.
 
-ascs

________________________________

From: Victor Trac [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 5:23 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Documentroot does not redirect...


For name based hosting you have to define at least one IP and port using 
NameVirtualHost.  So change NameVirtualHost *:80 to NameVirtualHost IP:80 and 
then you have to use <VirtualHost IP:Port> for every VirtualHost container.  
Otherwise the <VirtualHost *> or <VirtualHost *:80> will result in the first 
Virtual Host to be served by Apache.  So what you want is something like: 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to