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 pointing to the wrong directory

Discussion in 'General Discussion' started by Jonas, May 24, 2002.

  1. Jonas

    Jonas Registered

    Joined:
    May 15, 2002
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    my server with cPanel has a giant problem. I asked my registrar to point http://cpanel.hyper-dns.net/ to http://66.28.166.106 but when I click on it I get the correct page on the cpanel. but not on the IP what gives me some namebased site which is on the server.
    Any tips?
     
  2. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    18
    Is that namebased site on the same ip number? If so, then it is doing exactly what it should do. With namebased hosting, surfing to an ip number will pull up the first sight listed in the virtual host section of the httpd conf file that is using that ip. You could move the virtual host entry for the site you want to come up on that ip to the top of the virtual host directory to get the behaviour that you want.
     
  3. Jonas

    Jonas Registered

    Joined:
    May 15, 2002
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    So I should create a virtual host in httpd.conf that points to the apache htdocs (the main) correct me if I am wrong
     
  4. iggy

    iggy Member

    Joined:
    Feb 20, 2002
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    You are correct. Make sure it is the first virtual host entry for the main IP in httpd.conf
     
Loading...

Share This Page