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; }