updated nginx config for php-fpm use

This commit is contained in:
Eclipse 2023-09-27 22:17:52 +02:00
parent 1a1b717716
commit 40b0ce2983
2 changed files with 9 additions and 1 deletions

1
conf/extra_php-fpm.conf Normal file
View File

@ -0,0 +1 @@
; Additional 'php.ini' parameters for this YunoHost package/application

View File

@ -6,7 +6,14 @@ location __PATH__/ {
index index.html; index index.html;
try_files $uri /index.html; try_files $uri index.html;
location ~ \.php {
fastcgi_param QUERY_STRING $query_string;
fastcgi_param SCRIPT_NAME $script_name;
# include fastcgi_params;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
}
# Include SSOWAT user panel # Include SSOWAT user panel
include conf.d/yunohost_panel.conf.inc; include conf.d/yunohost_panel.conf.inc;