RE: [users@httpd] Documentroot does not redirect...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx] 
Sent: Thursday, April 13, 2006 5:23 PM
To: users@xxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux