Browse Source

Access Denied For .log Files

old-stable
Mitesh Shah 12 years ago
parent
commit
81f7078222
  1. 6
      etc/nginx/common/locations.conf

6
etc/nginx/common/locations.conf

@ -56,6 +56,12 @@ location ~ /\. {
log_not_found off; log_not_found off;
} }
location ~* ^.+.log {
deny all;
access_log off;
log_not_found off;
}
location ~ /readme\.(txt|html)$ { location ~ /readme\.(txt|html)$ {
deny all; deny all;
access_log off; access_log off;

Loading…
Cancel
Save