Skip to content

Commit 3c5b737

Browse files
committed
up php service
1 parent 9e0df2e commit 3c5b737

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

nginx/conf/php.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,10 @@ location ~ \.php(.*)$
2929
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
3030
include fastcgi_params;
3131
}
32+
33+
location = /fpm-status
34+
{
35+
include fastcgi_params;
36+
fastcgi_pass php:9000;
37+
fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
38+
}

php/conf/php-fpm.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pm.start_servers = 30
1919
pm.min_spare_servers = 20
2020
pm.max_spare_servers = 150
2121
pm.max_requests = 1000
22+
pm.status_path = /fpm-status
2223

2324
clear_env = no
2425

0 commit comments

Comments
 (0)