server { listen 80 default; # 禁止IP访问及未绑定的域名跳转 location = /healthz { access_log off; return 200; } location / { return 403; } }