Skip to content

Commit acf639e

Browse files
authored
Merge pull request #10 from mrvnklm/master
Added nginx location for FPM ping
2 parents 3c133d9 + 6521196 commit acf639e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

config/nginx.conf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,16 @@ http {
6565
log_not_found off;
6666
deny all;
6767
}
68+
69+
# allow fpm ping and status from localhost
70+
#
71+
location ~ ^/(fpm-status|fpm-ping)$ {
72+
access_log off;
73+
allow 127.0.0.1;
74+
deny all;
75+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
76+
include fastcgi_params;
77+
fastcgi_pass 127.0.0.1:9000;
78+
}
6879
}
6980
}

0 commit comments

Comments
 (0)