您的位置:首页 > 运维架构 > 反向代理

nginx 反向代理 后端 499 错误

2015-04-08 13:37 225 查看
499错误是什么

ngx_string(ngx_http_error_495_page), /* 495, https certificate error */
ngx_string(ngx_http_error_496_page), /* 496, https no certificate */
ngx_string(ngx_http_error_497_page), /* 497, http to https */
ngx_string(ngx_http_error_404_page), /* 498, canceled */
ngx_null_string, /* 499, client has closed connection */

可以看到,499对应的是 “client has closed connection”。这很有可能是因为服务器端处理的时间过长,客户端主动关闭了连接。

所有在做 nginx 反向代理的时候
nginx.conf 里面加入:

proxy_ignore_client_abort on;

配置参数 proxy_ignore_client_abort on; 表示代理服务端不要主要主动关闭客户端连接。

注: 只在做 反向代理的时候加入,作为其他服务器的时候,关闭为好,默认设置是 关闭的!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  反向代理 nginx 499