]> TLD Linux GIT Repositories - packages/apache.git/blob - apache-mod_userdir.conf
- 2.4 access control syntax
[packages/apache.git] / apache-mod_userdir.conf
1
2 LoadModule userdir_module          modules/mod_userdir.so
3
4 # Settings for user home directories
5 #
6 # Required module: mod_userdir
7
8 <IfModule mod_userdir.c>
9 #
10 # UserDir: The name of the directory that is appended onto a user's home
11 # directory if a ~user request is received.  Note that you must also set
12 # the default access control for these directories, as in the example below.
13 #
14 UserDir public_html
15
16 #
17 # Control access to UserDir directories.  The following is an example
18 # for a site where these directories are restricted to read-only.
19 #
20 <Directory /home/users/*/public_html>
21         AllowOverride FileInfo AuthConfig Limit Indexes
22         Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
23         <Limit GET POST OPTIONS>
24                 Require all granted
25         </Limit>
26         <LimitExcept GET POST OPTIONS>
27                 Require all denied
28         </LimitExcept>
29         #<IfModule mod_php.c>
30         #       php_admin_value open_basedir "/home/users:/usr/share/pear:/usr/share/php:/tmp"
31         #</IfModule>
32 </Directory>
33
34 </IfModule>