Skip to content

Commit

Permalink
Access Denied For .log Files
Browse files Browse the repository at this point in the history
  • Loading branch information
MiteshShah committed Jul 4, 2013
1 parent d680bac commit 81f7078
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions etc/nginx/common/locations.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 81f7078

Please sign in to comment.