Skip to content

Instantly share code, notes, and snippets.

@cameri
Created October 28, 2014 19:21
Show Gist options
  • Save cameri/4ca298937f56b7b4b709 to your computer and use it in GitHub Desktop.
Save cameri/4ca298937f56b7b4b709 to your computer and use it in GitHub Desktop.
# Settings for user home directories
#
# Required module: mod_authz_core, mod_authz_host, mod_userdir
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received. Note that you must also set
# the default access control for these directories, as in the example below.
#
UserDir www
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory "/home/*/www">
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Require method GET POST OPTIONS
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment