From 6521841fcf51bddc574fefa55ad356be25599666 Mon Sep 17 00:00:00 2001 From: Jacob Michalskie Date: Nov 03 2022 21:27:02 +0000 Subject: Use simpler location statement in nginx --- diff --git a/pillar/role/web_static.sls b/pillar/role/web_static.sls index 612029d..62bd92b 100644 --- a/pillar/role/web_static.sls +++ b/pillar/role/web_static.sls @@ -57,7 +57,7 @@ nginx: - add_header: Access-Control-Allow-Origin "*" {% endif %} {% if website == 'community' %} - - location ~ ^/$: + - location /: - return: 301 https://www.opensuse.org/ {% endif %} - error_page: 405 = $uri