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 Site Page

Discussion in 'General Discussion' started by jamiegee, Sep 28, 2013.

  1. jamiegee

    jamiegee Registered

    Joined:
    Sep 28, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    I have got WHM set up with 6 accounts on it, When i go to my servers IP address where you normally get the default website page it actually goes to first account alphabetically set up on the server? is there a way to stop this happening and just show the default web page?

    Many thanks in advanced

    Kind regards

    Jamie
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. jamiegee

    jamiegee Registered

    Joined:
    Sep 28, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    Thank you for your suggestions, however i tried this but it wasn't successful. Do you know if this is defaulted to the way cPanel works or is my configuration wrong? Any help would be much appreciated as this is quite urgent as i dont want my client to see this is happening.

    Kind regards

    Jamie
     
  4. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    When you go to your sever's IP address Apache looks in httpd.conf and finds the 1st vhost using that IP address and then opens that website.
    Usually the 1st vhost would be for your server's hostname, like:
    Code:
    <VirtualHost YOUR_IP_ADDRESS:80>
        ServerName server.yourdomain.com
        DocumentRoot /usr/local/apache/htdocs
        ServerAdmin admin@yourdomain.com
        <IfModule mod_suphp.c>
            suPHP_UserGroup nobody nobody
        </IfModule>
    </VirtualHost>
    
    "YOUR_IP_ADDRESS" should be the main shared IP address of your server.

    It's possible that those 6 accouts you created are using some other IP address. In that case the 1st site in httpd.conf using that IP address will open.
     
Loading...

Share This Page