From d55d4a9c7eefc81c0a8a7583af0eb3f6e8d6386d Mon Sep 17 00:00:00 2001 From: gitea Date: Wed, 18 Aug 2021 07:36:50 +0000 Subject: [PATCH] + google & yandex confirmation files support & allow opening xml files in web-root --- octobercms.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/octobercms.conf b/octobercms.conf index 883f501..f9b493a 100644 --- a/octobercms.conf +++ b/octobercms.conf @@ -20,6 +20,12 @@ location ~ ^/robots\.txt { try_files $uri /index.php; } location ~ ^/humans\.txt { try_files $uri /index.php; } + ## Google & Yandex website confirmation + location ~ ^/(google|yandex).*\.html { try_files $uri /index.php; } + + ## Xml files in web-root, like as sitemap + location ~ ^/.*\.xml { try_files $uri /index.php; } + ## Let nginx return 404 if static file not exists location ~ ^/storage/app/uploads/public { try_files $uri 404; } location ~ ^/storage/app/media { try_files $uri 404; }