[NTLUG:Discuss] baffling apache behavior

David Camm bbai at onramp.net
Wed Dec 6 10:12:25 CST 2000


i recently had to move a server which caused a change in it's base IP
address (it aliases 64 other IPs).

in httpd.conf, the base IP was set up like this:

NameVirtualHost 1.2.3.4
<VirtualHost 1.2.3.4>
ServerName www.foo.com
definitions for foo...
</VirtualHost>

<VirtualHost 1.2.3.4>
ServerName www.bar.com
definitions for bar.....
</VirtualHost>

NameVirtualHost 7.8.9.10 ..... (many other definitions)

i changed the dns entries for foo and bar to point to 5.6.7.8 (the new
base IP). i also changed all occurences of 1.2.3.4 to 5.6.7.8 in
httpd.conf. apachectl configtest did not show any errors.

upon rebooting, ALL the websites came back with the exception of
www.bar.com, which, when accessed from a browser, comes up with the foo
website.  it's as if the servername www.bar.com is not in apache's
tables.  if one does an nslookup,  www.bar.com resolves to 5.6.7.8, just
as it should.

i'm absolutely stumped. does anyone have any ideas?

david camm
advanced web systems



More information about the Discuss mailing list