summaryrefslogtreecommitdiff
path: root/apache2/conf-available
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-11-16 15:27:10 +0100
committerJonas Smedegaard <dr@jones.dk>2015-11-16 15:27:10 +0100
commit7170982d4684cc3a3d946617471f4a7192d27ea3 (patch)
tree6207d9e75f99d7125c8d66e3dc3627aa67709463 /apache2/conf-available
parentea52fa03c785ecd6da3d2e9d4ea4cc18a33ceebd (diff)
Migrate userdir snippet to Jessie Apache2.4 syntax.
Diffstat (limited to 'apache2/conf-available')
-rw-r--r--apache2/conf-available/local-userdir.conf13
1 files changed, 13 insertions, 0 deletions
diff --git a/apache2/conf-available/local-userdir.conf b/apache2/conf-available/local-userdir.conf
new file mode 100644
index 0000000..6029dad
--- /dev/null
+++ b/apache2/conf-available/local-userdir.conf
@@ -0,0 +1,13 @@
+UserDir public_html
+UserDir disabled root
+
+<DirectoryMatch ^/((srv/)?home/[a-z0-9-_]+|srv/[a-z0-9-_]+/home)/public_html>
+ AllowOverride FileInfo AuthConfig Limit Indexes
+ Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
+ <Limit GET POST OPTIONS>
+ Require all granted
+ </Limit>
+ <LimitExcept GET POST OPTIONS>
+ Require all denied
+ </LimitExcept>
+</DirectoryMatch>