update restriction rules

This commit is contained in:
joglomedia
2019-12-03 21:13:12 +07:00
parent 9c81451179
commit 2a114fed4f

View File

@@ -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;