update PHP
parent
1bbbadeb53
commit
ce11b653f9
|
@ -23,12 +23,17 @@ server {
|
||||||
proxy_read_timeout 800;
|
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$) {
|
location ~ (/\.ht|/\.git|\.ini$|/libraries|/helpers|/i18n|/node|/views/.+php$) {
|
||||||
deny all;
|
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;
|
rewrite ^/admin/api/([^/]*)/([^/]*)/?(.*)?$ /admin/api/api.php?module=$1&command=$2&route=$3 last;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue