diff --git a/conf/nginx.conf b/conf/nginx.conf index 87ee77e..44389f2 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -14,7 +14,7 @@ location ^~ YNH_WWW_PATH { location ~* \.php$ { fastcgi_split_path_info ^(.+.php)(/.+)$; - fastcgi_pass unix:/var/run/php5-fpm-YNH_WWW_ROOTAPP.sock; + fastcgi_pass unix:/var/run/php5-fpm-YNH_WWW_APP.sock; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param HTTP_PROXY ""; # Fix for https://httpoxy.org/ vulnerability diff --git a/scripts/install b/scripts/install index 5359f78..7103393 100644 --- a/scripts/install +++ b/scripts/install @@ -115,6 +115,7 @@ else fi sed -i "s@YNH_WWW_PATH@$path@g" $nginxconf sed -i "s@YNH_WWW_FINALPATH@$final_path@g" $nginxconf +sed -i "s@YNH_WWW_APP@$app@g" $nginxconf sudo cp $nginxconf /etc/nginx/conf.d/$domain.d/$app.conf ### PHP ### diff --git a/scripts/upgrade b/scripts/upgrade index f7b8fbb..5ceb4e3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -43,6 +43,7 @@ else fi sed -i "s@YNH_WWW_PATH@$path@g" $nginxconf sed -i "s@YNH_WWW_FINALPATH@$final_path@g" $nginxconf +sed -i "s@YNH_WWW_APP@$final_path@g" $nginxconf sudo cp $nginxconf /etc/nginx/conf.d/$domain.d/$app.conf # If a dedicated php-fpm process is used: