Newly Migrated Domain on Shared IP is Assigned IP "Any" and Resolves to Wrong /home Directory

2 posts / 0 new
Last post
#1 Fri, 05/15/2015 - 22:29
katir

Newly Migrated Domain on Shared IP is Assigned IP "Any" and Resolves to Wrong /home Directory

I migrated another domain from our old CentoOS box (where it had it's own IP) and restored it to a cloud server on a shared IP.

even though IP assignment is there in "Edit Virtual Server" as Current IP address 45.56.82.123

and this also appears in the Change IP Address panel... when I go to WebMin --> Apache Server..

I see this:

Virtual Server  Any     80  new.server.com  /home/newserver/public_html     Open..

DNS has already propagated for this new server and I have my /etc/hosts file on my own box set to

45.56.82.123 new.server.com

but when I try to get to it in a browser... we get the home page for

another.server.org # on this same shared IP

i.e it resolves to /home/anotherserverorg/public_html/index.html

instead of the DOCROOT for

/home/newserver/public_html/index.html

I tried stopping and start apache (after reading another post here on this same problem from someone else) and indeed there were some config errors. The directives for new.server.com had a few archaic lines that were not correct (or even needed) and after I deleted those I could run apach2clt stop (then start) without a an error... but, going back to WebMin, the IP for this server, port 80 was still stuck on "Any" and in a browser, stil resolves to the DOCROOT of a different virtual server on the same shared IP.

Fri, 05/15/2015 - 22:30
katir

OH I should add this is on Ubuntu 14.04 LTS...

Topic locked