From dd843e771ea856c6cb82923789dd51b4fdf77dd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 24 Oct 2023 18:01:02 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 9598907..9fdb221 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -77,6 +77,12 @@ location ^~ __PATH__/ { } } + location = __PATH__/robots.txt { + allow all; + log_not_found off; + access_log off; + } + # Rules borrowed from `.htaccess` to hide certain paths from clients location ~ ^__PATH__/(?:build|tests|config|lib|3rdparty|templates|data)(?:$|/) { return 404; } location ~ ^__PATH__/(?:\.|autotest|occ|issue|indie|db_|console) { return 404; }