| 1 |
# Settings for user home directories
|
| 2 |
<IfDefine USERDIR>
|
| 3 |
<IfModule userdir_module>
|
| 4 |
# UserDir: The name of the directory that is appended onto a user's home
|
| 5 |
# directory if a ~user request is received. Note that you must also set
|
| 6 |
# the default access control for these directories, as in the example below.
|
| 7 |
UserDir public_html
|
| 8 |
|
| 9 |
# Control access to UserDir directories. The following is an example
|
| 10 |
# for a site where these directories are restricted to read-only.
|
| 11 |
<Directory /home/*/public_html>
|
| 12 |
AllowOverride FileInfo AuthConfig Limit Indexes
|
| 13 |
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
|
| 14 |
<Limit GET POST OPTIONS>
|
| 15 |
Order allow,deny
|
| 16 |
Allow from all
|
| 17 |
</Limit>
|
| 18 |
<LimitExcept GET POST OPTIONS>
|
| 19 |
Order deny,allow
|
| 20 |
Deny from all
|
| 21 |
</LimitExcept>
|
| 22 |
</Directory>
|
| 23 |
|
| 24 |
# Suexec isn't really required to run cgi-scripts, but it's a really good
|
| 25 |
# idea if you have multiple users serving websites...
|
| 26 |
<IfDefine SUEXEC>
|
| 27 |
<IfModule suexec_module>
|
| 28 |
<Directory /home/*/public_html/cgi-bin>
|
| 29 |
Options ExecCGI
|
| 30 |
SetHandler cgi-script
|
| 31 |
</Directory>
|
| 32 |
</IfModule>
|
| 33 |
</IfDefine>
|
| 34 |
|
| 35 |
# vims: ts=4 filetype=apache
|