Mediawiki-nginx伪静态设置
1 | location ~ ^\/.+$ {if ($request_uri ~ ^/cache) { break; }if ($request_uri ~ ^/docs) { break; }if ($request_uri ~ ^/extensions) { break; }if ($request_uri ~ ^/images) { break; }if ($request_uri ~ ^/includes) { break; }if ($request_uri ~ ^/languages) { break; }if ($request_uri ~ ^/maintenance) { break; }if ($request_uri ~ ^/mw-config) { break; }if ($request_uri ~ ^/resources) { break; }if ($request_uri ~ ^/skins) { break; }if ($request_uri ~ ^/tests) { break; }if ($request_uri ~ ^/vendor) { break; }if ($request_uri ~ ^/index\.php) { break; }rewrite ^/(.+)$ /index.php?title=$1 last;} |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 ZDisk!