diff --git a/etc/nginx/common/locations.conf b/etc/nginx/common/locations.conf index 0b184de88..23adea86e 100644 --- a/etc/nginx/common/locations.conf +++ b/etc/nginx/common/locations.conf @@ -56,6 +56,12 @@ location ~ /\. { log_not_found off; } +location ~* ^.+.log { + deny all; + access_log off; + log_not_found off; +} + location ~ /readme\.(txt|html)$ { deny all; access_log off;