From 5c674bdd964056ee2ad70c82d6d568c8e7473c58 Mon Sep 17 00:00:00 2001 From: Marvin Date: Tue, 5 Feb 2019 11:27:05 +0100 Subject: [PATCH] added nginx location for fpm ping --- config/nginx.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/nginx.conf b/config/nginx.conf index 107d202..6e02dc3 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -65,5 +65,15 @@ http { log_not_found off; deny all; } + + # allow fpm ping and status from localhost + # + location ~ ^/(fpm-status|fpm-ping)$ { + access_log off; + allow 127.0.0.1; + deny all; + include fastcgi_params; + fastcgi_pass 127.0.0.1:9000; + } } }