Browse Source

Deny Backup Extensions & Log Files

old-stable
Mitesh Shah 12 years ago
parent
commit
d18c76fc88
  1. 4
      etc/nginx/common/locations.conf

4
etc/nginx/common/locations.conf

@ -76,8 +76,8 @@ location ~ /\. {
log_not_found off;
}
# Deny To .log Extension
location ~* ^.+\.log$ {
# Deny Backup Extensions & Log Files
location ~* ^.+\.(bak|log|orig|original|php~|php_bak|save|swo|swp)$ {
deny all;
access_log off;
log_not_found off;

Loading…
Cancel
Save