Commit 3ca0a6db authored by Jakub Klinkovský's avatar Jakub Klinkovský Committed by Jelle van der Waa
Browse files

archwiki: move the nginx location for /title/ links above /load.php

parent d75f534d
......@@ -57,6 +57,11 @@ server {
return 307 /title/$1;
}
# Handling for the article path (pretty URLs)
location ^~ /title/ {
rewrite ^ /index.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;
......@@ -71,11 +76,6 @@ server {
add_header X-Cache $upstream_cache_status;
}
# Handling for the article path (pretty URLs)
location ^~ /title/ {
rewrite ^ /index.php;
}
# normal PHP FastCGI handler
location ~ ^/[^/]+\.php$ {
try_files $uri =404;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment