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.

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:
    1
    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?
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    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:
    16
    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.
     
  4. doubledome

    doubledome Member

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

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

Share This Page