lol

Merge pull request #3780 from ip1981/master

Fixed rewrite rules for Mediawiki

+4
+3
lib/strings.nix
··· 34 concatStringsSep = separator: list: 35 concatStrings (intersperse separator list); 36 37 38 # Construct a Unix-style search path consisting of each `subDir" 39 # directory of the given list of packages. For example,
··· 34 concatStringsSep = separator: list: 35 concatStrings (intersperse separator list); 36 37 + concatMapStringsSep = sep: f: list: concatStringsSep sep (map f list); 38 + concatImapStringsSep = sep: f: list: concatStringsSep sep (lib.imap f list); 39 + 40 41 # Construct a Unix-style search path consisting of each `subDir" 42 # directory of the given list of packages. For example,
+1
nixos/modules/services/web-servers/apache-httpd/mediawiki.nix
··· 133 RewriteEngine On 134 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f 135 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d 136 RewriteRule ${if config.enableUploads 137 then "!^/images" 138 else "^.*\$"
··· 133 RewriteEngine On 134 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f 135 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d 136 + ${concatMapStringsSep "\n" (u: "RewriteCond %{REQUEST_URI} !^${u.urlPath}") serverInfo.serverConfig.servedDirs} 137 RewriteRule ${if config.enableUploads 138 then "!^/images" 139 else "^.*\$"