diff --git a/roles/deploy-web/files/gouter b/roles/deploy-web/files/gouter index 45acd03..80c5dd2 100644 --- a/roles/deploy-web/files/gouter +++ b/roles/deploy-web/files/gouter @@ -18,14 +18,15 @@ server { add_header 'Content-Security-Policy' 'upgrade-insecure-requests'; #add_header Link " rel=\"canonical\", rel=\"alternate\" hreflang=\"fr\""; proxy_cache STATIC; - location / { - set $header " rel=\"canonical\", rel=\"alternate\" hreflang=\"fr\""; - if ($request_uri ~ "/tag/") { - set $header " rel=\"canonical\", rel=\"alternate\" hreflang=\"fr\""; - set $link ""; + set $header " rel=\"canonical\", rel=\"alternate\" hreflang=\"fr\""; + if ($request_uri ~ "/tag/") { + set $header " rel=\"canonical\", rel=\"alternate\" hreflang=\"fr\""; + set $link ""; - } - add_header Link $header; + } + add_header Link $header; + + location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. #try_files $uri $uri/ =404;