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!

Accessing website using IP

Discussion in 'General Discussion' started by praveenkv1988, May 6, 2011.

  1. praveenkv1988

    praveenkv1988 Member

    Joined:
    May 21, 2007
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Trivandrum
    When the mod_userdir is not enabled and trying to access the website using IP there is a problem.

    If the code is written to include the file which is placed in document root, it looks for the file in "htdocs".

    Is there a way to make it look the users "public_html" dir?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,609
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If the IP being used is the shared IP, then that IP does point to /usr/local/apache/htdocs directory rather than any individual site's directory as the default document root. As such, you cannot have it look into individual public_html directories for the shared main IP address. mod_userdir would need to be enabled to use that shared IP along with the cPanel username.

    If you do require using the IP directly, then the site would need to have a dedicated IP. If the site has a dedicated IP rather than the main shared IP, it should resolve in a browser without needing to use mod_userdir on that dedicated IP.
     
    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