httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel-St├ęphane SMORGRAV <>
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.


From: Victor Trac [] 
Sent: Thursday, April 13, 2006 5:23 PM
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:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message