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

Merge pull request #33 from polytan02/patch-1

Adjust php-fpm details in nginx sections
This commit is contained in:
Titus PiJean 2017-02-22 20:11:27 +01:00 committed by GitHub
commit ec2ef7471a
3 changed files with 3 additions and 1 deletions

View file

@ -14,7 +14,7 @@ location ^~ YNH_WWW_PATH {
location ~* \.php$ { location ~* \.php$ {
fastcgi_split_path_info ^(.+.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; include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param HTTP_PROXY ""; # Fix for https://httpoxy.org/ vulnerability fastcgi_param HTTP_PROXY ""; # Fix for https://httpoxy.org/ vulnerability

View file

@ -115,6 +115,7 @@ else
fi fi
sed -i "s@YNH_WWW_PATH@$path@g" $nginxconf sed -i "s@YNH_WWW_PATH@$path@g" $nginxconf
sed -i "s@YNH_WWW_FINALPATH@$final_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 sudo cp $nginxconf /etc/nginx/conf.d/$domain.d/$app.conf
### PHP ### ### PHP ###

View file

@ -43,6 +43,7 @@ else
fi fi
sed -i "s@YNH_WWW_PATH@$path@g" $nginxconf sed -i "s@YNH_WWW_PATH@$path@g" $nginxconf
sed -i "s@YNH_WWW_FINALPATH@$final_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 sudo cp $nginxconf /etc/nginx/conf.d/$domain.d/$app.conf
# If a dedicated php-fpm process is used: # If a dedicated php-fpm process is used: