From b538d5733549c0b6897fd7c4a8ee2a59fd5e6e6b Mon Sep 17 00:00:00 2001 From: frju365 Date: Wed, 1 Feb 2017 20:15:19 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 7ac9110..1659038 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,16 +1,13 @@ location ^~ YNH_WWW_PATH { - root /var/www; + alias YNH_WWW_ALIASwww/ ; try_files $uri $uri/ /YNH_WWW_APP/index.php?$query_string; index /YNH_WWW_APP/index.php; location ~* \.php$ { - fastcgi_split_path_info ^(.+.php)(/.+)$; + fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass 127.0.0.1:9000; - include fastcgi_params; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - fastcgi_param HTTP_PROXY ""; # Fix for https://httpoxy.org/ vulnerability fastcgi_index yellow.php; - fastcgi_read_timeout 600; + include fastcgi_params; } location ~* \.html$ {