Prevent Access to Site From Shared IP
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.
-
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. 0 -
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?0 -
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:0
Please sign in to leave a comment.
Comments
3 comments