From 2a114fed4fb87daee011002b5e41db460d2f4d0a Mon Sep 17 00:00:00 2001 From: joglomedia Date: Tue, 3 Dec 2019 21:13:12 +0700 Subject: [PATCH] update restriction rules --- etc/nginx/includes/rules_restriction.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;