From ce11b653f9ad0fd1a7d735ad59f47b72a64f011b Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 18 Dec 2024 01:59:40 -0500 Subject: [PATCH] update PHP --- Nginx/Server Blocks/pbx.ins.conf | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Nginx/Server Blocks/pbx.ins.conf b/Nginx/Server Blocks/pbx.ins.conf index 90c6c61..4142a9b 100644 --- a/Nginx/Server Blocks/pbx.ins.conf +++ b/Nginx/Server Blocks/pbx.ins.conf @@ -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; - }