IP address discimination

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

 



I have 2 dedicated Fed linux servers, one running httpd 2.0.51, which does not show this problem, and the other running 2.0.53 which does. Both host about 30 domains across 8 IP addresses each. The problem I'm trying to solve is an automatic redirection of http://example.com to http://www.example.com. This is the entry from the offending httpd.conf, (IP's and domains sanitised):

<VirtualHost 1.2.3.4:80>
ServerAlias example1.com
Redirect permanent / http://www.example1.com/
</VirtualHost>

<VirtualHost 1.2.3.4:80>
ServerAlias example2.com
Redirect permanent / http://www.example2.com/
</VirtualHost>

<VirtualHost 1.2.3.5:80>
ServerAlias example3.com
Redirect permanent / http://www.example3.com/
</VirtualHost>

<VirtualHost 1.2.3.5:80>
ServerAlias example4.com
Redirect permanent / http://www.example4.com/
</VirtualHost>

I get the message "[warn] VirtualHost 1.2.3.5:80 overlaps with VirtualHost 1.2.3.5:80, the first has precedence, perhaps you need a NameVirtualHost directive"

I've been using this pattern for a long time, certainly pre apache 2 and am willing to change if I have to. What I can't understand is why the message doesn't come up for 1.2.3.4, which is an identical configuration! In fact, if I make all the entries 1.2.3.4 the message also goes away. I can't say why this doesn't happen with the 2.0.51 server which uses the same practice, it could either be the httpd version or the IP addresses it uses are all ok.

It all points to the IP address itself somehow being treat differently, and as the founding member of the "IP address equality for all" resistance movement I say thats not fair!

Thanks

--
--------------------------
http://www.phonewebcam.com
john.steel@xxxxxxxxxxxxxxx


---------------------------------------------------------------------
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