Hostname Resolving to Different Account

eleven2

Member
PartnerNOC
Mar 2, 2004
15
0
151
Ok, I am kinda new to this hosting thing, but I bought a server a few weeks ago from EV1 and got it all setup. I created the hostname for the server as w1.eleven2.com

but when you goto w1.eleven2.com it goes to the first account I have on the server. I really don't want my customers to goto thier hostname and it goes to another site. I would either want it to goto my main site or just something else.

I changed the A entry for w1.eleven2.com but then I get a email all the time that says its resolving to wrong IP, but it is how I want it then, so I dont know what to do.

Please help.
 

Website Rob

Well-Known Member
Mar 23, 2002
1,501
1
318
Alberta, Canada
cPanel Access Level
Root Administrator
Usually, the Apache Test Page is what shows for Server Base IP, which is what you are referring to.

In your httpd.conf file you scroll all the way down until you find the very first: NameVirtualHost entry. It should be your Base IP address. The entry right below it should be a VirtualHost entry for your Hostname.

i.e.

NameVirtualHost xx.xx.xx.xx:80

<VirtualHost xx.xx.xx.xx>
BytesLog domlogs/w1.eleven2.com.com-bytes_log
ServerName w1.eleven2.com
DocumentRoot /usr/local/apache/htdocs
</VirtualHost>

Also make sure, in 'root' WHM, to click the link for:

DNS Functions > Add an A Entry for your Hostname