2015-02-27 00:58:55 +00:00
|
|
|
# Settings for user home directories
|
|
|
|
<IfDefine 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 public_html
|
|
|
|
|
|
|
|
# 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 FileInfo AuthConfig Limit Indexes
|
|
|
|
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
|
|
|
|
<Limit GET POST OPTIONS>
|
2015-07-31 00:34:53 +00:00
|
|
|
Require all granted
|
2015-02-27 00:58:55 +00:00
|
|
|
</Limit>
|
|
|
|
<LimitExcept GET POST OPTIONS>
|
2015-07-31 00:34:53 +00:00
|
|
|
Require all denied
|
2015-02-27 00:58:55 +00:00
|
|
|
</LimitExcept>
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
# Suexec isn't really required to run cgi-scripts, but it's a really good
|
|
|
|
# idea if you have multiple users serving websites...
|
|
|
|
<IfDefine SUEXEC>
|
|
|
|
<Directory /home/*/public_html/cgi-bin>
|
|
|
|
Options ExecCGI
|
|
|
|
SetHandler cgi-script
|
|
|
|
</Directory>
|
|
|
|
</IfDefine>
|
|
|
|
|
|
|
|
</IfDefine>
|
|
|
|
|
|
|
|
# vim: ts=4 filetype=apache
|