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