diff options
author | Jonas Smedegaard <dr@jones.dk> | 2013-04-28 15:09:58 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2013-04-28 15:09:58 +0200 |
commit | f6355b78075a901945705d74fa3a1de9e4f40c4b (patch) | |
tree | 7fdba94741a322a4c7404ee1b42c6855da42a679 | |
parent | 93e37246ab3c6eb84b7ab7269c3e42f048fad145 (diff) |
Change local-userdir snippet to cover (some patterns of) home below /srv using DirectoryMatch.
-rw-r--r-- | apache2/conf.d/local-userdir.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apache2/conf.d/local-userdir.conf b/apache2/conf.d/local-userdir.conf index c30f10c..aff1836 100644 --- a/apache2/conf.d/local-userdir.conf +++ b/apache2/conf.d/local-userdir.conf @@ -1,7 +1,7 @@ UserDir public_html UserDir disabled root -<Directory /home/*/public_html> +<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> @@ -12,4 +12,4 @@ UserDir disabled root Order deny,allow Deny from all </LimitExcept> -</Directory> +</DirectoryMatch> |