41a6c3
#
41a6c3
# UserDir: The name of the directory that is appended onto a user's home
41a6c3
# directory if a ~user request is received.
41a6c3
#
41a6c3
# The path to the end user account 'public_html' directory must be
41a6c3
# accessible to the webserver userid.  This usually means that ~userid
41a6c3
# must have permissions of 711, ~userid/public_html must have permissions
41a6c3
# of 755, and documents contained therein must be world-readable.
41a6c3
# Otherwise, the client will only receive a "403 Forbidden" message.
41a6c3
#
41a6c3
<IfModule mod_userdir.c>
41a6c3
    #
41a6c3
    # UserDir is disabled by default since it can confirm the presence
41a6c3
    # of a username on the system (depending on home directory
41a6c3
    # permissions).
41a6c3
    #
41a6c3
    UserDir disabled
41a6c3
41a6c3
    #
41a6c3
    # To enable requests to /~user/ to serve the user's public_html
41a6c3
    # directory, remove the "UserDir disabled" line above, and uncomment
41a6c3
    # the following line instead:
41a6c3
    # 
41a6c3
    #UserDir public_html
41a6c3
</IfModule>
41a6c3
41a6c3
#
41a6c3
# Control access to UserDir directories.  The following is an example
41a6c3
# for a site where these directories are restricted to read-only.
41a6c3
#
41a6c3
<Directory "/home/*/public_html">
41a6c3
    AllowOverride FileInfo AuthConfig Limit Indexes
41a6c3
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
41a6c3
    Require method GET POST OPTIONS
41a6c3
</Directory>
41a6c3