mod_userdir tweak not working correctly

Belaird

Well-Known Member
Jun 24, 2004
59
0
156
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)
 
Last edited by a moderator:

linux4me2

Well-Known Member
Aug 21, 2015
259
80
78
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.