]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Move mod_userdir config to extra/.
authorJoshua Slive <slive@apache.org>
Sat, 2 Apr 2005 18:54:47 +0000 (18:54 +0000)
committerJoshua Slive <slive@apache.org>
Sat, 2 Apr 2005 18:54:47 +0000 (18:54 +0000)
(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

docs/conf/extra/httpd-userdir.conf [new file with mode: 0644]
docs/conf/httpd-std.conf.in

diff --git a/docs/conf/extra/httpd-userdir.conf b/docs/conf/extra/httpd-userdir.conf
new file mode 100644 (file)
index 0000000..9be34f9
--- /dev/null
@@ -0,0 +1,28 @@
+# Settings for user home directories
+#
+# Required module: mod_userdir
+
+#
+# UserDir: The name of the directory that is appended onto a user's home
+# directory if a ~user request is received.  Note that you must also set
+# the default access control for these directories, as in the example below.
+#
+UserDir public_html
+
+#
+# Control access to UserDir directories.  The following is an example
+# for a site where these directories are restricted to read-only.
+#
+<Directory /home/*/public_html>
+    AllowOverride FileInfo AuthConfig Limit Indexes
+    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
+    <Limit GET POST OPTIONS PROPFIND>
+        Order allow,deny
+        Allow from all
+    </Limit>
+    <LimitExcept GET POST OPTIONS PROPFIND>
+        Order deny,allow
+        Deny from all
+    </LimitExcept>
+</Directory>
+
index 1c628b40102b5300e3c5c90ec4a5c556e6fc004b..0fdd0d8db162a9ba9b3e37f043c22a535103312a 100644 (file)
@@ -362,32 +362,6 @@ DocumentRoot "@exp_htdocsdir@"
 
 </Directory>
 
-#
-# UserDir: The name of the directory that is appended onto a user's home
-# directory if a ~user request is received.  Note that you must also set
-# the default access control for these directories, as in the example below.
-#
-<IfModule userdir_module>
-    UserDir public_html
-</IfModule>
-
-#
-# Control access to UserDir directories.  The following is an example
-# for a site where these directories are restricted to read-only.
-#
-#<Directory /home/*/public_html>
-#    AllowOverride FileInfo AuthConfig Limit Indexes
-#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
-#    <Limit GET POST OPTIONS PROPFIND>
-#        Order allow,deny
-#        Allow from all
-#    </Limit>
-#    <LimitExcept GET POST OPTIONS PROPFIND>
-#        Order deny,allow
-#        Deny from all
-#    </LimitExcept>
-#</Directory>
-
 #
 # DirectoryIndex: sets the file that Apache will serve if a directory
 # is requested.
@@ -807,6 +781,9 @@ ServerSignature On
 # Language settings
 # Include @relsysconfdir@/extra/httpd-languages.conf
 
+# User home directories
+# Include @relsysconfdir@/extra/httpd-userdir.conf
+
 #
 # Secure (SSL/TLS) connections
 # Include @rel_sysconfdir@/extra/httpd-ssl.conf