Skip to content

Commit 818909d

Browse files
committed
Update nginx_default.conf
1 parent c463389 commit 818909d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

examples/fpm-nginx-dhi/config/nginx_default.conf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,20 @@ server {
5555
allow fd00::/8;
5656
deny all;
5757
}
58+
59+
# nginx ping
60+
location /nginx_ping {
61+
add_header Content-Type text/plain;
62+
return 200 'pong';
63+
access_log off;
64+
allow 127.0.0.1;
65+
allow 10.0.0.0/8;
66+
allow 172.16.0.0/12;
67+
allow 192.168.0.0/16;
68+
allow ::1;
69+
allow fd00::/8;
70+
deny all;
71+
}
5872

5973
# php-fpm status/ping
6074
location ~ ^/(php_fpm_status|php_fpm_ping)$ {

0 commit comments

Comments
 (0)