jamiegee

Registered
Sep 28, 2013
2
0
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

You can try rebuilding the Apache configuration file via:

Code:
/scripts/rebuildhttpdconf
Thank you.
 

jamiegee

Registered
Sep 28, 2013
2
0
1
cPanel Access Level
Root Administrator
Hello :)

You can try rebuilding the Apache configuration file via:

Code:
/scripts/rebuildhttpdconf
Thank you.
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
 

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
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
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 [email protected]
    <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.