1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monitorix_ynh.git synced 2024-09-03 19:46:06 +02:00

Fix nginx php status config

This commit is contained in:
Josué Tille 2024-04-04 22:15:58 +02:00
parent 83492c0925
commit bc4020564d
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -18,12 +18,10 @@ server {
{%- set phpversion = php_pool_info.split(',')[0] %} {%- set phpversion = php_pool_info.split(',')[0] %}
{%- set pool_name = php_pool_info.split(',')[1] %} {%- set pool_name = php_pool_info.split(',')[1] %}
location {{ path.rstrip('/') }}/php-pool-status/php{{ phpversion }}-fpm-{{ pool_name }} { location /php-pool-status/php{{ phpversion }}-fpm-{{ pool_name }} {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php{{ phpversion }}-fpm-{{ pool_name }}-{{ app }}-status.sock; fastcgi_pass unix:/var/run/php/php{{ phpversion }}-fpm-{{ pool_name }}-{{ app }}-status.sock;
include fastcgi_params; include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME cas_server.php;
} }
{%- endfor %} {%- endfor %}
{%- endif %} {%- endif %}