arrfab / rpms / httpd

Forked from rpms/httpd 5 years ago
Clone

Blame SOURCES/userdir.conf

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