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:
commit
ec2ef7471a
3 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 ###
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue