From bc4020564d8bcc5230075ad450d42456cec76fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Thu, 4 Apr 2024 22:15:58 +0200 Subject: [PATCH] Fix nginx php status config --- conf/nginx_status.conf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/conf/nginx_status.conf b/conf/nginx_status.conf index fa424a9..d14dca7 100644 --- a/conf/nginx_status.conf +++ b/conf/nginx_status.conf @@ -18,12 +18,10 @@ server { {%- set phpversion = php_pool_info.split(',')[0] %} {%- set pool_name = php_pool_info.split(',')[1] %} - location {{ path.rstrip('/') }}/php-pool-status/php{{ phpversion }}-fpm-{{ pool_name }} { - fastcgi_split_path_info ^(.+?\.php)(/.*)$; + location /php-pool-status/php{{ phpversion }}-fpm-{{ pool_name }} { fastcgi_pass unix:/var/run/php/php{{ phpversion }}-fpm-{{ pool_name }}-{{ app }}-status.sock; include fastcgi_params; - fastcgi_param PATH_INFO $fastcgi_path_info; - fastcgi_param SCRIPT_FILENAME cas_server.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } {%- endfor %} {%- endif %}