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!

Default virtual host of server IP for showing default server page is not in the httpd.conf

Discussion in 'Bind/DNS/Nameserver' started by armin654, Dec 26, 2014.

  1. armin654

    armin654 Well-Known Member

    Joined:
    Feb 12, 2014
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Dear friends
    According to customers complaint i realized that the server IP is showing one of the websites on our shared IP address with 100 sites.
    So if you write the server IP in your browser then one specific website from those 100 websites will be shown(always one specific site and not randomly)

    I realized the might be something wrong about the virtual host setting
    I realized this is missed in the httpd.conf: (x.x.x.x is our IP address)
    Code:
    <VirtualHost x.x.x.x:80>
        ServerName x.x.x.x
        DocumentRoot /usr/local/apache/htdocs
        ServerAdmin someuser @ gmail.com
        UserDir disabled
    </VirtualHost>
    I can add it to httpd.conf file but since it may be overwrite by cpanel i want to know how we have faced with this and how to permanently resolve it?
    regards
     
  2. danrussell

    danrussell Well-Known Member

    Joined:
    Nov 5, 2014
    Messages:
    61
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hi :),

    Get a backup of httpd.conf and rebuild it using below command and see if that fixes the issue:

    /scripts/rebuildhttpdconf
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Yes, first try rebuilding the Apache configuration file via:

    Code:
    /scripts/rebuildhttpdconf
    Let us know the outcome.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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