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.

mod_userdir tweak not working correctly

Discussion in 'Security' started by Belaird, Aug 10, 2016.

Tags:
  1. Belaird

    Belaird Well-Known Member

    Joined:
    Jun 24, 2004
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    If I enable the apache mod_userdir tweak, and specifically allow exclusions for a select few domains, those domains will not function using https://servername/~username/... and I get a 404 Error. Turning off mod_userdir they then work.

    Server
    • CENTOS 6.8 x86_64 standard – server

    • WHM 58.0 (build 13)
     
    #1 Belaird, Aug 10, 2016
    Last edited by a moderator: Aug 10, 2016
  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
    I found the directions for mod_userdir to be a little confusing.

    If you want all of your users to be able to access their sites via https://servername/~username, what you need to do is enable mod_userdir, 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 https://servername/~username, 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.

    My understanding is that if you check an Exclude Protection by a specific host; e.g., thedomain.com, that means that any username could be appended to that domain (http://thedomain.com/~username) and access their site, stealing bandwidth from the domain.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page