proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://test; proxy_next_upstream error timeout http_500 http_502 http_503; } #后端阶段健康状态监控 location /status { check_status; access_log off; } } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13....