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; 表示代理服务端不要主要主动关闭客户端连接。
注: 只在做 反向代理的时候加入,作为其他服务器的时候,关闭为好,默认设置是 关闭的!
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反向代理Nodejs – log4js日志IP显示错误
- Centos 7 上使用nginx为Node.js配置反向代理时错误:(13: Permission denied) while connecting to upstream
- nginx根据目录反向代理到后端服务器
- Nginx 反向代理、后端检测模块
- nginx反向代理8080端口到后端的80端口配置
- 反向代理or后端nginx 缓存生效时间
- Nginx前端设置反向代理,后端Apache如何获取访客的真实IP,结合PHP
- nginx配置反向代理解决前后端分离跨域问题
- nginx反向代理时通过rewrite解决后端资源css/js/img 写了绝对路径的问题
- Nginx反向代理proxy_cache_path directive is not allowed错误解决方法
- Nginx反向代理后,图片路径错误
- nginx 反向代理 504 错误
- nginx反向代理tomcat应用,struts2网站程序redirect时导致请求地址错误的解决方法
- nginx 反向代理 504 错误
- nginx反向代理到后端tomcat,并将IP地址发送到后端的配置
- nginx反向代理服务,因配置文件错误导致访问资源时出现404
- Nginx监听非80端口反向代理80端口出现跳转错误
- NGINX生产环境反向代理到后端tomcat配置
- nginx配置反向代理解决前后端分离跨域问题