1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jirafeau_ynh.git synced 2024-09-03 19:35:53 +02:00

prevent un-authorized access to var

This commit is contained in:
ericgaspar 2020-03-26 12:22:13 +01:00
parent 161654aa71
commit f632f8c530

View file

@ -32,6 +32,11 @@ location __PATH__/ {
deny all;
}
location ~ ^__PATH__/var-.* {
deny all;
return 404;
}
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php7.0-fpm-__NAME__.sock;