arrfab / rpms / httpd

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