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:
parent
9ddb401b51
commit
227fcdcaef
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue