Skip to content

Commit 8e7256a

Browse files
author
Joshua Slive
committed
Move mod_userdir config to extra/.
(The default on UserDir should be changed to disabled so that it won't work without this extra config stuff.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/simple-conf@159792 13f79535-47bb-0310-9956-ffa450edef68
1 parent 95bd73c commit 8e7256a

File tree

2 files changed

+31
-26
lines changed

2 files changed

+31
-26
lines changed

docs/conf/extra/httpd-userdir.conf

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+

docs/conf/httpd-std.conf.in

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)