From 40b0ce298320f12ba508ddb88dfce4d0fefd57f3 Mon Sep 17 00:00:00 2001 From: Eclipse Date: Wed, 27 Sep 2023 22:17:52 +0200 Subject: [PATCH] updated nginx config for php-fpm use --- conf/extra_php-fpm.conf | 1 + conf/nginx.conf | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 conf/extra_php-fpm.conf diff --git a/conf/extra_php-fpm.conf b/conf/extra_php-fpm.conf new file mode 100644 index 0000000..0de7148 --- /dev/null +++ b/conf/extra_php-fpm.conf @@ -0,0 +1 @@ +; Additional 'php.ini' parameters for this YunoHost package/application diff --git a/conf/nginx.conf b/conf/nginx.conf index 84e6d8b..6d5007e 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,7 +6,14 @@ location __PATH__/ { 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 conf.d/yunohost_panel.conf.inc;