Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
b8407cdc
Commit
b8407cdc
authored
Apr 24, 2021
by
Jakub Klinkovský
Committed by
Jelle van der Waa
May 01, 2021
Browse files
archwiki: add nginx location block for the new REST API
parent
3ca0a6db
Changes
1
Show whitespace changes
Inline
Side-by-side
roles/archwiki/templates/nginx.d.conf.j2
View file @
b8407cdc
...
...
@@ -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;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment