Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2294413
  • 博文数量: 276
  • 博客积分: 5998
  • 博客等级: 大校
  • 技术积分: 5175
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-24 14:43
文章分类

全部博文(276)

文章存档

2014年(25)

2013年(11)

2012年(69)

2011年(167)

2010年(4)

分类: LINUX

2011-04-24 13:36:49

在分析nginx日志时有时会发现499错误,在apache日志中不存在的,所以感到很疑惑。查阅了相关文档
写了下面这篇文章,有不足之处还望指正。
rfc2616中定义了400-417错误代码,418-499是自定义范畴。所以可以判断499是nginx自己定义的。
查看一下nginx源代码会发现有下面关于nginx code的解释
# vim src/http/ngx_http_special_response.c
......................................
    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代码很有可能是因为服务器端处理请求过长,客户端不能承受就断开了连接。
阅读(7452) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~