Prevent Access to Site From Shared IP

jasong24

Registered
Sep 12, 2012
3
0
51
cPanel Access Level
Root Administrator
How can I prevent a website assigned to a shared IP on a reseller account from loading when a user enters just the IP address in a browser's navigation bar? I'm not sure if the site that's currently loading is happening at random, was just the first site on that reseller account, or by some other specification. I'd rather the defaultwebpage.cgi be displayed for all shared IPs.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,252
313
Houston
Hi @jasong24

First I'd like to point out that cPanel only supports one main shared IP address for the entire server. Secon,d you SHOULD be only seeing the default page when accessing the IP address directly for anything over a shared IP unless you're accessing over https in which case you'll get the first VirtualHost in the apache configuration for that IP address.
 

jasong24

Registered
Sep 12, 2012
3
0
51
cPanel Access Level
Root Administrator
Hi @jasong24

First I'd like to point out that cPanel only supports one main shared IP address for the entire server. Secon,d you SHOULD be only seeing the default page when accessing the IP address directly for anything over a shared IP unless you're accessing over https in which case you'll get the first VirtualHost in the apache configuration for that IP address.
Thanks for the response!

That is correct. I only have one main shared IP. Each reseller then has a unique shared IP assigned to it. If I attempt to browse to the main shared IP, I see the default page. If I browse to a reseller shared IP, I see one of sites owned by that reseller. This behavior occurs with both http and https. Is this expected (even non-secure)? Is there any way to alter my configuration so that all non-dedicated IP addresses display the default page?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,252
313
Houston
Thanks for the response!

That is correct. I only have one main shared IP. Each reseller then has a unique shared IP assigned to it. If I attempt to browse to the main shared IP, I see the default page. If I browse to a reseller shared IP, I see one of sites owned by that reseller. This behavior occurs with both http and https. Is this expected (even non-secure)? Is there any way to alter my configuration so that all non-dedicated IP addresses display the default page?
It's a bit different for the shared IP assigned to resellers - that's essentially a reserved IP address. You might want to look through the thread here:

Server IP Address