blob: 9450ce2eb3af536948cd4cfc2258f86df96a4683 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
http:// {
encode gzip zstd
rewrite /w/images/deleted/* /403.html
rewrite /w/cache/* /403.html
rewrite /w/languages/* /403.html
rewrite /w/maintenance/* /403.html
rewrite /w/serialized/* /403.html
rewrite /.svn/* /403.html
rewrite /.git/* /403.html
respond /403.html "Nice try." 403
# /wiki/ handling (also requires $wgArticlePath and $wgUsePathInfo to be useful)
@wikiPath {
path /wiki/*
}
rewrite @wikiPath /w/index.php?title={path.1}&{query}
redir / /wiki/Main_Page
# to deny access to the installer
#rewrite /w/mw-config* { deny all; }
# serve
root * /var/www/mediawiki
php_fastcgi 127.0.0.1:9000
file_server
}
|