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!

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:
    66
    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:
    834
    Likes Received:
    28
    Trophy Points:
    178
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,758
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. RisenAngel

    RisenAngel Well-Known Member

    Joined:
    Mar 9, 2011
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Killeen, Texas
    Thanks, it resolved the issue
     
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