Web Hosting Talk







View Full Version : changing default site to show up via IP address


JeremyV
01-05-2003, 05:06 PM
I have this pretty strange problem, as on one of my servers if you type in the main shared IP in your web browser, instead of resolving and displaying my main site, it is showing just one of my customer's site :confused: It never used to do this, but a customer sent in a support ticket this morning wondering why when they go to http://IP address/~username it is resolving to their site, but replacing the IP with someone elses domain rather than my domain.

How would you go about changing that? I was looking at the DNS zone files for all the accounts but nothing seems amiss :confused:

JeremyV
01-05-2003, 05:42 PM
Oops, I guess this should be in technical issues.. but I am using cPanel/WHM, so I suppose that makes it ok for this forum as well :D

DangerMouse
01-06-2003, 03:04 PM
When you have a shared IP, the account that loads when you type in just the IP in the address bar is the first account found in the httpd.conf file just after the first instance of that IP.

Usually the first account that was created in WHM.

JeremyV
01-06-2003, 05:06 PM
Thanks, yeah that makes a lot of sense, and it fixed it once I edited the file. For some reason the original domain got moved to the bottom, when no changes have been made to it either by editing it by hand or via a control panel. Kinda strange, but anyways thanks. All is well now :)