Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    3

    Default IP pointing to the wrong directory

    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. #2
    Member
    Join Date
    Oct 2001
    Posts
    651

    Default

    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.
    Marty Hoskins
    TLC Web Enterprises

  3. #3
    Registered User
    Join Date
    May 2002
    Posts
    3

    Default

    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. #4
    Member
    Join Date
    Feb 2002
    Posts
    24

    Default

    You are correct. Make sure it is the first virtual host entry for the main IP in httpd.conf

Similar Threads & Tags
Similar threads

  1. domain pointing to wrong account
    By Chriz1977 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-17-2007, 09:22 AM
  2. Site Relative Links pointing to wrong directory
    By jimmshepard in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 11-17-2004, 02:45 AM
  3. domains pointing to the wrong site
    By dd2k in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-18-2004, 09:11 PM
  4. domain pointing to the wrong place
    By semaj in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-06-2004, 07:52 PM
  5. IP pointing to the wrong directory
    By Jonas in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-24-2002, 01:05 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube