aboutsummaryrefslogtreecommitdiff
path: root/usr/pkg/etc/httpd/httpd-userdir.conf
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-15 12:30:52 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-15 12:33:20 +0200
commitae6e2da429b6a81e0b612d1969f20b3177197810 (patch)
tree54d321ca172552b58c9e62c5a9250bf1ca925f80 /usr/pkg/etc/httpd/httpd-userdir.conf
parentc60f6320fbd60adf170b6e2e2603d01b8e9bb950 (diff)
downloadrbsd-ae6e2da429b6a81e0b612d1969f20b3177197810.tar.gz
httpd.conf: Enable userdirs
Diffstat (limited to 'usr/pkg/etc/httpd/httpd-userdir.conf')
-rw-r--r--usr/pkg/etc/httpd/httpd-userdir.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/usr/pkg/etc/httpd/httpd-userdir.conf b/usr/pkg/etc/httpd/httpd-userdir.conf
new file mode 100644
index 0000000..704dbe4
--- /dev/null
+++ b/usr/pkg/etc/httpd/httpd-userdir.conf
@@ -0,0 +1,21 @@
+# Settings for user home directories
+#
+# Required module: mod_authz_core, mod_authz_host, 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 www
+
+#
+# Control access to UserDir directories. The following is an example
+# for a site where these directories are restricted to read-only.
+#
+<Directory "/home/*/www">
+ AllowOverride FileInfo AuthConfig Limit Indexes
+ Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
+ Require method GET POST OPTIONS
+</Directory>
+