From 81f70782227a9046f7b7c2c98c4a5489b97e52ee Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Thu, 4 Jul 2013 19:15:03 +0530 Subject: [PATCH] Access Denied For .log Files --- etc/nginx/common/locations.conf | 6 ++++++ 1 file changed, 6 insertions(+) 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;