summaryrefslogtreecommitdiffstats
path: root/userdir.conf
diff options
context:
space:
mode:
authorJoe Orton <jorton@redhat.com>2012-03-13 09:55:18 +0000
committerJoe Orton <jorton@redhat.com>2012-03-13 09:55:18 +0000
commit3a44ff765502ac564b64b4958239d30e8566dcaf (patch)
tree24433e423b88c4319e138caa4d0e3c94a8458b30 /userdir.conf
parent61679dd90cf1ebd9e9342223ce5344346a9142ce (diff)
downloadhttpd-3a44ff765502ac564b64b4958239d30e8566dcaf.tar.gz
httpd-3a44ff765502ac564b64b4958239d30e8566dcaf.tar.xz
httpd-3a44ff765502ac564b64b4958239d30e8566dcaf.zip
update to 2.4.1
- adopt upstream default httpd.conf (almost verbatim) - split all LoadModules to conf.modules.d/*.conf - include conf.d/*.conf at end of httpd.conf - trim %changelog
Diffstat (limited to 'userdir.conf')
-rw-r--r--userdir.conf36
1 files changed, 36 insertions, 0 deletions
diff --git a/userdir.conf b/userdir.conf
new file mode 100644
index 0000000..b5d7a49
--- /dev/null
+++ b/userdir.conf
@@ -0,0 +1,36 @@
+#
+# UserDir: The name of the directory that is appended onto a user's home
+# directory if a ~user request is received.
+#
+# The path to the end user account 'public_html' directory must be
+# accessible to the webserver userid. This usually means that ~userid
+# must have permissions of 711, ~userid/public_html must have permissions
+# of 755, and documents contained therein must be world-readable.
+# Otherwise, the client will only receive a "403 Forbidden" message.
+#
+<IfModule mod_userdir.c>
+ #
+ # UserDir is disabled by default since it can confirm the presence
+ # of a username on the system (depending on home directory
+ # permissions).
+ #
+ UserDir disabled
+
+ #
+ # To enable requests to /~user/ to serve the user's public_html
+ # directory, remove the "UserDir disabled" line above, and uncomment
+ # the following line instead:
+ #
+ #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
+ Require method GET POST OPTIONS
+</Directory>
+