Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Hostname Resolving to Different Account

Discussion in 'General Discussion' started by eleven2, Mar 27, 2004.

  1. eleven2

    eleven2 Member PartnerNOC

    Mar 2, 2004
    Likes Received:
    Trophy Points:
    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

    but when you goto 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 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.
  2. Website Rob

    Website Rob Well-Known Member

    Mar 23, 2002
    Likes Received:
    Trophy Points:
    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.


    NameVirtualHost xx.xx.xx.xx:80

    <VirtualHost xx.xx.xx.xx>
    BytesLog domlogs/
    DocumentRoot /usr/local/apache/htdocs

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

    DNS Functions > Add an A Entry for your Hostname
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice