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