Nginx反向代理经常出现502错误,怎么改都没用,用IIS和apache反代都正常,最下边是错误日志,基本都是报upstream timed out (110: Connection timed out) while reading response header from upstream这个错误。
添加
proxy_http_version 1.1;
proxy_set_header Connection ""; 这两个也不行,继续加。。
proxy_buffering on;
proxy_buffers 8 2M;
proxy_buffer_size 4k;
proxy_busy_buffers_size 10M; 加这四个也解决不了,上边几个我都是加在反代的配置文件里
proxy_send_timeout 5400;
proxy_read_timeut 5400; 增加超时时间也是解决不了,这两个也加在反代配置文件里么?还有没有其他方面的问题?求帮助。。。。
2021/09/03 07:05:38 [error] 8470#0: *294066873 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 访客IP, server: ***, request: "GET /***** HTTP/2.0", upstream: "*****", host: "****"
|
|