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.

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

Discussion in 'Bind / DNS / Nameserver Issues' 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:
    60
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,766
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page