diff --git a/etc/nginx/common/locations.conf b/etc/nginx/common/locations.conf index 441b4ea8..9c89df7b 100644 --- a/etc/nginx/common/locations.conf +++ b/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;