3
0
Fork 0
forked from mirrors/nixpkgs

Made Mediawiki rewrite rules work for virtual hosts

Related to cdd1785cd6
This commit is contained in:
Igor Pashev 2014-08-29 13:56:23 +02:00
parent 17b88f1b09
commit 019bc6bb2b

View file

@ -133,7 +133,7 @@ in
RewriteEngine On RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
${concatMapStringsSep "\n" (u: "RewriteCond %{REQUEST_URI} !^${u.urlPath}") serverInfo.serverConfig.servedDirs} ${concatMapStringsSep "\n" (u: "RewriteCond %{REQUEST_URI} !^${u.urlPath}") serverInfo.vhostConfig.servedDirs}
RewriteRule ${if config.enableUploads RewriteRule ${if config.enableUploads
then "!^/images" then "!^/images"
else "^.*\$" else "^.*\$"