File tree Expand file tree Collapse file tree 2 files changed +31
-26
lines changed
Expand file tree Collapse file tree 2 files changed +31
-26
lines changed Original file line number Diff line number Diff line change 1+ # Settings for user home directories
2+ #
3+ # Required module: mod_userdir
4+
5+ #
6+ # UserDir: The name of the directory that is appended onto a user's home
7+ # directory if a ~user request is received. Note that you must also set
8+ # the default access control for these directories, as in the example below.
9+ #
10+ UserDir public_html
11+
12+ #
13+ # Control access to UserDir directories. The following is an example
14+ # for a site where these directories are restricted to read-only.
15+ #
16+ <Directory /home/*/public_html>
17+ AllowOverride FileInfo AuthConfig Limit Indexes
18+ Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
19+ <Limit GET POST OPTIONS PROPFIND>
20+ Order allow,deny
21+ Allow from all
22+ </Limit>
23+ <LimitExcept GET POST OPTIONS PROPFIND>
24+ Order deny,allow
25+ Deny from all
26+ </LimitExcept>
27+ </Directory>
28+
Original file line number Diff line number Diff line change @@ -362,32 +362,6 @@ DocumentRoot "@exp_htdocsdir@"
362362
363363</Directory>
364364
365- #
366- # UserDir: The name of the directory that is appended onto a user's home
367- # directory if a ~user request is received. Note that you must also set
368- # the default access control for these directories, as in the example below.
369- #
370- <IfModule userdir_module>
371- UserDir public_html
372- </IfModule>
373-
374- #
375- # Control access to UserDir directories. The following is an example
376- # for a site where these directories are restricted to read-only.
377- #
378- #<Directory /home/*/public_html>
379- # AllowOverride FileInfo AuthConfig Limit Indexes
380- # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
381- # <Limit GET POST OPTIONS PROPFIND>
382- # Order allow,deny
383- # Allow from all
384- # </Limit>
385- # <LimitExcept GET POST OPTIONS PROPFIND>
386- # Order deny,allow
387- # Deny from all
388- # </LimitExcept>
389- #</Directory>
390-
391365#
392366# DirectoryIndex: sets the file that Apache will serve if a directory
393367# is requested.
@@ -807,6 +781,9 @@ ServerSignature On
807781# Language settings
808782# Include @relsysconfdir@/extra/httpd-languages.conf
809783
784+ # User home directories
785+ # Include @relsysconfdir@/extra/httpd-userdir.conf
786+
810787#
811788# Secure (SSL/TLS) connections
812789# Include @rel_sysconfdir@/extra/httpd-ssl.conf
You can’t perform that action at this time.
0 commit comments