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.

main shared IP showing a website

Discussion in 'General Discussion' started by RisenAngel, Jul 2, 2014.

  1. RisenAngel

    RisenAngel Well-Known Member

    Joined:
    Mar 9, 2011
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Killeen, Texas
    I am curious. the main ip of my cpanel installation is shared amongst all the websites hosted on it. Normally it would show the default page when you type the ip address into an address. Now it's showing one of the websites. Should it be doing that?
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Apache will load the first virtualhost that is listed for an IP in httpd.conf. So it's possible maybe the ordering got messed up, in which case just run:

    /scripts/rebuildhttpdconf
    service httpd restart
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, Vanessa is right. Unless you are using SSL to access the IP, then rebuilding the Apache configuration file will likely address the issue:

    Code:
    /scripts/rebuildhttpdconf
    Thank you.
     
  4. RisenAngel

    RisenAngel Well-Known Member

    Joined:
    Mar 9, 2011
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Killeen, Texas
    Thanks, it resolved the issue
     
Loading...

Share This Page