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!

IP resolves to wrong domain

Discussion in 'General Discussion' started by doubledome, Nov 9, 2004.

  1. doubledome

    doubledome Member

    Joined:
    Sep 14, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    Hi All,

    We've just migrated to a new server and the share IP is resolving to the first domain we moved to this box. We would like it to resolve to a different domain when the IP is typed into a browser.

    What do I need to do?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,366
    Likes Received:
    5
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Edit httpd.conf and make that domain the first one listed after the NameVirtualHost directive.
     
  3. fwwebs

    fwwebs Well-Known Member

    Joined:
    Feb 16, 2004
    Messages:
    329
    Likes Received:
    0
    Trophy Points:
    166
    You may want to make the default cPanel (/usr/local/cpanel/htdocs/index.html) page the first domain in the list:
    unless you want a specific domain to be served as in sawbuck's answer.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. doubledome

    doubledome Member

    Joined:
    Sep 14, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    Perfect

    I was hoping the solution was that easy. I noticed that yesterday, but didn't want to mess with it without confirmation. Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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