19Jun/060
User directories not included in default Apache 2.2 config?
I just recently upgraded bonzo to Apache 2.2. I noticed that user directories, (eg, apocryph.org/~anelson mapping to /home/anelson/public_html/ don’t work anymore. What gives?
The httpd.conf entry in question is:
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root toor daemon operator bin tty kmem games news man sshd bind proxy _pflogd uucp pop www nobody mailnull smmsp
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/public_html>
AllowOverride Options FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
</IfModule>
This isn’t in the default config for Apache 2.2. Too bad. The userdir module is loaded; they’re just not enabled. I added the above and did an apachectl graceful and voila.