The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    0
    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:
    79
    Likes Received:
    13
    Trophy Points:
    8
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...
Similar Threads - setup dedicated server
  1. Alan Harvey
    Replies:
    3
    Views:
    625
  2. seowebmaster
    Replies:
    17
    Views:
    670

Share This Page