The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hostname Resolving to Different Account

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

  1. eleven2

    eleven2 Member
    PartnerNOC

    Joined:
    Mar 2, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    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
     
Loading...

Share This Page