httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel-St├ęphane SMORGRAV <Axel-Stephane.SMORG...@europe.adp.com>
Subject RE: [users@httpd] Documentroot does not redirect...
Date Fri, 14 Apr 2006 06:13:08 GMT
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:victor.trac@gmail.com] 
Sent: Thursday, April 13, 2006 5:23 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] 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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message