server {
listen 8081;
server_name 127.0.0.1 172.30.* 172.31.* 10.68.*; # LB网段
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
location /status {
content_by_lua_file luascripts/status.lua;
access_log off;
allow 127.0.0.1;
deny all;
}
location /health_check { # 用于公有云LB探活nginx
access_log /data/logs/nginx/health_check_access.log main;
return 200;
}
}
标签:status,LB,log,0.1,接口,公有,access,location
From: https://blog.51cto.com/zzzhao/6223706