remove try_files usage for txt/xml

This commit is contained in:
Daniel Micay 2020-04-18 23:16:49 -04:00
parent 0dd856c41f
commit 539b97e347

View File

@ -84,7 +84,6 @@ server {
location ~ "\.(txt|xml)$" { location ~ "\.(txt|xml)$" {
include /etc/nginx/snippets/security-headers.conf; include /etc/nginx/snippets/security-headers.conf;
add_header Cache-Control "public, max-age=1800"; add_header Cache-Control "public, max-age=1800";
try_files $uri $uri.html $uri/ =404;
} }
location / { location / {