From 7ac0f338011d3259cebe08d1cd998e7fc57e1af9 Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Sat, 29 Aug 2015 02:30:09 +0200 Subject: [PATCH] Updated nginx.conf --- conf/nginx.conf | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 6577935..db624ba 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,19 +1,21 @@ location LOCATIONTOCHANGE { - alias ALIASTOCHANGE/; + alias ALIASTOCHANGE/; - try_files $uri $uri/ PATHTOCHANGE/yourls-loader.php; + try_files $uri $uri/ PATHTOCHANGE/yourls-loader.php; - index index.php index.html index.htm; + index index.php index.html index.htm; - location ~ \.php$ { - fastcgi_split_path_info ^(.+.php)(/.+)$; - fastcgi_pass unix:/var/run/php5-fpm.sock; - fastcgi_index index.php; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - include fastcgi_params; - } + location ~ [^/]\.php(/|$) { + fastcgi_split_path_info ^(.+?\.php)(/.*)$; + fastcgi_pass unix:/var/run/php5-fpm.sock; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param REMOTE_USER $remote_user; + fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_param SCRIPT_FILENAME $request_filename; + } - + # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; }