Skip to content
Snippets Groups Projects
Commit b8407cdc authored by Jakub Klinkovský's avatar Jakub Klinkovský Committed by Jelle van der Waa
Browse files

archwiki: add nginx location block for the new REST API

parent 3ca0a6db
No related branches found
No related tags found
1 merge request!335archwiki: Implement short URLs
......@@ -62,6 +62,11 @@ server {
rewrite ^ /index.php;
}
# Handling for MediaWiki REST API, see https://www.mediawiki.org/wiki/API:REST_API
location ^~ /rest.php/ {
rewrite ^ /rest.php;
}
# special case for '/load.php' type URLs to cache css/js in nginx to relieve php-fpm
location = /load.php {
access_log /var/log/nginx/{{ archwiki_domain }}/access.log main;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment