Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Prevent Access to Site From Shared IP

Discussion in 'General Discussion' started by jasong24, Feb 20, 2019.

  1. jasong24

    jasong24 Registered

    Joined:
    Sep 12, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,729
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. jasong24

    jasong24 Registered

    Joined:
    Sep 12, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    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?
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,729
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice