1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/element_ynh.git synced 2024-09-03 18:36:08 +02:00

[Security] Improve php path in nginx config

This commit is contained in:
Josué Tille 2019-05-14 17:14:24 +02:00
parent 9ddb401b51
commit 227fcdcaef
No known key found for this signature in database
GPG key ID: D5E068C6DFA8681D

View file

@ -10,8 +10,8 @@ location __PATH__/ {
# Common parameter to increase upload size limit in conjuction with dedicated php-fpm file
client_max_body_size 100M;
#try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) {
# Use the specific path for the php file. It's more secure than global php path
location __PATH__/get_user_token.php {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm-__NAME__.sock;
fastcgi_index index.php;