From 53ce4b5da18a2e9e316fbea4651b6d892096883d Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sat, 31 Aug 2019 16:04:29 +0200 Subject: xan: Named locations only allowed at server level MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- nginx/xan_kyriasis_com.sls | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nginx/xan_kyriasis_com.sls b/nginx/xan_kyriasis_com.sls index 0168f4e..6a21d5f 100644 --- a/nginx/xan_kyriasis_com.sls +++ b/nginx/xan_kyriasis_com.sls @@ -51,14 +51,14 @@ nginx: - client_body_timeout: 60 + - location @mediawiki: + - rewrite: '^/wiki([^?]*)(?:\?(.*))? /index.php5?title=$1&$2 last;' + - location /wiki: - root: /usr/share/webapps/xans-wiki - index: index.php index.html - try_files: $uri $uri/ @mediawiki - - location @mediawiki: - - rewrite: '^/wiki([^?]*)(?:\?(.*))? /index.php5?title=$1&$2 last;' - - location ~ \.php$: - include: fastcgi.conf - fastcgi_pass: unix:/var/run/php-fpm/php-fpm.sock -- cgit v1.2.3-54-g00ecf