1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/horde_ynh.git synced 2024-09-03 19:16:08 +02:00

Nginx config - Protect unnecessary path

This commit is contained in:
Josué Tille 2019-05-14 17:42:24 +02:00
parent 908acb1e79
commit e2be6fb0b4
No known key found for this signature in database
GPG key ID: D5E068C6DFA8681D

View file

@ -13,6 +13,10 @@ location __PATH__/ {
# Common parameter to increase upload size limit in conjuction with dedicated php-fpm file
client_max_body_size 50M;
# Protect all not necessary files
location ~ (/templates/|(?<!js/syntaxhighlighter)\/scripts/|/lib/|/po/|/locale/|(?<!admin)\/config\/) {
deny all;
}
try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;