update PHP

master
Matthew 2024-12-18 01:59:40 -05:00
parent 1bbbadeb53
commit ce11b653f9
Signed by: matthew
SSH Key Fingerprint: SHA256:piIXekA9q1p0ZGi4ogFbNY1embip5Ytbi3v8AZ8UYq4
1 changed files with 8 additions and 3 deletions

View File

@ -23,12 +23,17 @@ server {
proxy_read_timeout 800;
}
# disallows the things that the FreePBX .htaccess files disallow
# Block access to orangehrm and orangehrm-5.1 directories
location ~ ^/(orangehrm|orangehrm-5\.1)(/|$) {
deny all;
return 403;
}
# Disallows the things that the FreePBX .htaccess files disallow
location ~ (/\.ht|/\.git|\.ini$|/libraries|/helpers|/i18n|/node|/views/.+php$) {
deny all;
}
# from the api module .htaccess file
# From the api module .htaccess file
rewrite ^/admin/api/([^/]*)/([^/]*)/?(.*)?$ /admin/api/api.php?module=$1&command=$2&route=$3 last;
}