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!

Just setup new dedicated server, can't view sites by IP

Discussion in 'EasyApache' started by Brian J, Oct 1, 2016.

Tags:
  1. Brian J

    Brian J Registered

    Joined:
    Oct 1, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta
    cPanel Access Level:
    Root Administrator
    I just got a dedicated server setup, and it refuses to show me sites by IP - for example, myipaddress/~site = 404 error. I thought this was supposed to work? What am I missing?

    This is obviously not my strong point - but thank you in advance for any insights you may have!
     
  2. linux4me2

    linux4me2 Well-Known Member

    Joined:
    Aug 21, 2015
    Messages:
    201
    Likes Received:
    47
    Trophy Points:
    28
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    In order to view sites via a temporary URL using your shared IP address then "~username", you have to have the mod_userdir tweak enabled. In WHM, go Security Center -> mod_userdir Tweak and make sure it is enabled. Note: if you are using mod_ruid2, you can't use the mod_userdir tweak.

    Once you've enabled the mod_userdir tweak, if you want all your users to be able to access their sites via a temporary URL, then check the Exclude Protection box for DefaultHost (nobody).

    If you want only a few of your users to be able to access their sites via a temporary URL, say during development before their DNS are set, just include their usernames in the "additional users" box on the same line as DefaultHost (nobody). The Exclude Protection box doesn't need to be checked.

    The documentation for the mod_userdir tweak is at:

    Apache mod_userdir Tweak - Documentation - cPanel Documentation
     
    cPanelMichael likes this.
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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