mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
mediawiki: Don't rewrite /images if uploads are enabled
This commit is contained in:
parent
1e7300ad67
commit
f7c04b1e6b
@ -130,12 +130,13 @@ in
|
||||
RewriteEngine On
|
||||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
|
||||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
|
||||
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/${if config.articleUrlPrefix == ""
|
||||
RewriteRule ${if config.enableUploads
|
||||
then "!^/images"
|
||||
else "^.*\$"
|
||||
} %{DOCUMENT_ROOT}/${if config.articleUrlPrefix == ""
|
||||
then ""
|
||||
else "${config.articleUrlPrefix}/"
|
||||
}index.php [L]
|
||||
|
||||
RewriteRule ^/*$ ${mediawikiRoot}/index.php [L] # For syntax hilighter: */
|
||||
''}
|
||||
|
||||
<Directory ${mediawikiRoot}>
|
||||
|
Loading…
Reference in New Issue
Block a user