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; log_not_found off;
} }
# Deny To .log Extension # Deny Backup Extensions & Log Files
location ~* ^.+\.log$ { location ~* ^.+\.(bak|log|orig|original|php~|php_bak|save|swo|swp)$ {
deny all; deny all;
access_log off; access_log off;
log_not_found off; log_not_found off;

Loading…
Cancel
Save