git.iko.soy/typeable/nixpkgs
on master help sign in
wiki: do not rewrite served files
commit8388bd3280104c17e27693b75038e11f55941e85 authorIgor Pashev <pashev.igor@gmail.com> dateTue 28 Apr 2015, 07:38 (12 years ago) parent09602f7
1 file changed+1
nixos/modules/services/web-servers/apache-httpd/mediawiki.nix+1
nixos/modules/services/web-servers/apache-httpd/mediawiki.nix+1
@@ -142,6 +142,7 @@ in
142142 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
143143 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
144144 ${concatMapStringsSep "\n" (u: "RewriteCond %{REQUEST_URI} !^${u.urlPath}") serverInfo.vhostConfig.servedDirs}
145+ ${concatMapStringsSep "\n" (u: "RewriteCond %{REQUEST_URI} !^${u.urlPath}") serverInfo.vhostConfig.servedFiles}
145146 RewriteRule ${if config.enableUploads
146147 then "!^/images"
147148 else "^.*\$"