mirror of
https://github.com/joglomedia/LEMPer.git
synced 2026-04-06 20:59:08 +00:00
update restriction rules
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user