IP address goes to last sub domain created

nylrya

Registered
Apr 28, 2013
1
0
1
cPanel Access Level
Reseller Owner
Hi,
Just curious why this is happening. I have purchased an extra IP address for a shared hosting account, and I have recently setup a sub domain sub.domain.me (domain.me is a parked domain of domain.com). Now for some reason, when I go directly to the purchased IP address http://123.456.78.99/ it returns the page from sub.domain.me instead of domain.com. Does anyone know why this is happening?

Thanks,
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

The IP address is going to display the contents of the document root configured on the first Virtual Host in the Apache configuration file for that IP. Your access level is listed as "Reseller Owner" so I presume you do not have root access to this server. You may want to consult with your web hosting provider to see if they can arrange the httpd.conf file so that your primary domain name's Virtual Host is the first one for that IP address.

Thank you.