diff options
Diffstat (limited to 'apache2')
-rw-r--r-- | apache2/conf-available/local-userdir.conf | 13 |
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> |