From 9fb6fce366e7f1a797ae5abbb86f938c136bcc64 Mon Sep 17 00:00:00 2001 From: Jacob Michalskie Date: Nov 03 2022 21:36:51 +0000 Subject: Correct the location --- diff --git a/pillar/role/web_jekyll.sls b/pillar/role/web_jekyll.sls index 10797bf..dcda655 100644 --- a/pillar/role/web_jekyll.sls +++ b/pillar/role/web_jekyll.sls @@ -48,6 +48,7 @@ nginx: - $uri - $uri/index.html - $uri.html + - =404 {% if website == 'news' %} - if ($args ~* "feed=rss2"): - set: $args "" @@ -58,9 +59,9 @@ nginx: {% endif %} {% if website == 'planet' %} - rewrite: ^/global/$ / redirect - - location ~ /tw: + - location ~ /tw(|/.*)$: - rewrite: ^/tw(.*)$ /zh_TW$1 redirect - - location ~ /gr: + - location ~ /gr(|/.*)$: - rewrite: ^/gr(.*)$ /el$1 redirect {% endif %} - location ~* \.(?:ttf|otf|eot|woff)$: