From 12bcb8e7bfa4c630716f1e4227e7b4a5078ccaa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20N=C3=B6ll?= Date: Tue, 2 Mar 2021 16:12:12 +0100 Subject: [PATCH] add txt files to regexp for SEO tools txt files should also be considered by craft for the SEO plugins. So a robots.txt could be generated. --- nginx/craftcms/general.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/craftcms/general.conf b/nginx/craftcms/general.conf index d30b6df..84e9a79 100644 --- a/nginx/craftcms/general.conf +++ b/nginx/craftcms/general.conf @@ -11,7 +11,7 @@ location = /robots.txt { } # assets, media -location ~* \.(?:css(\.map)?|js(\.map)?|jpe?g|png|gif|ico|cur|heic|webp|tiff?|mp3|m4a|aac|ogg|midi?|wav|mp4|mov|webm|mpe?g|avi|ogv|flv|wmv)$ { +location ~* \.(?:css(\.map)?|js(\.map)?|jpe?g|png|gif|ico|cur|heic|webp|tiff?|mp3|m4a|aac|ogg|midi?|wav|mp4|mov|webm|mpe?g|avi|ogv|flv|wmv|txt)$ { try_files $uri /index.php?$query_string; expires 7d; access_log off;