diff --git a/etc/nginx/includes/rules_restriction.conf b/etc/nginx/includes/rules_restriction.conf index 6356975..c30e5b7 100644 --- a/etc/nginx/includes/rules_restriction.conf +++ b/etc/nginx/includes/rules_restriction.conf @@ -36,12 +36,16 @@ location ~ /(error|access)\_log$ { } # Deny access to changelog, license, readme file. -location ~* /(changelog|license|readme)\.(html|md|rst|txt)$ { +location ~* /(changelog|install|license|readme|upgrading)\.(html|md|rst|txt)$ { deny all; access_log off; log_not_found off; } +location ~ ^/(bin|SQL)/ { + deny all; +} + # Deny access to PHP composer's file inside vendor directory. location ~* /vendor/.*\.php$ { deny all;