summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apache2/conf.d/local-userdir.conf24
1 files changed, 15 insertions, 9 deletions
diff --git a/apache2/conf.d/local-userdir.conf b/apache2/conf.d/local-userdir.conf
index 90ea184..c30f10c 100644
--- a/apache2/conf.d/local-userdir.conf
+++ b/apache2/conf.d/local-userdir.conf
@@ -1,9 +1,15 @@
-<IfModule mod_userdir.c>
- UserDir public_html
- UserDir disabled root
-
- <Directory /home/*/public_html>
- AllowOverride FileInfo AuthConfig Limit
- Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
- </Directory>
-</IfModule>
+UserDir public_html
+UserDir disabled root
+
+<Directory /home/*/public_html>
+ AllowOverride FileInfo AuthConfig Limit Indexes
+ Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
+ <Limit GET POST OPTIONS>
+ Order allow,deny
+ Allow from all
+ </Limit>
+ <LimitExcept GET POST OPTIONS>
+ Order deny,allow
+ Deny from all
+ </LimitExcept>
+</Directory>