- 论坛徽章:
- 0
|
我有一台nginx做反向代理的服务器
现在出了一个很奇怪的事情,就是当用户使用IE或者谷歌Chrome浏览器访问这台代理服务器所代理的网站时,报错"该页无法显示"。但是使用Firefox和Opera访问时却一切良好
nginx上的错误日志中重复出现下面的内容
#cat error.log
2009/05/25 16:42:17 [notice] 5944#0: signal 17 (SIGCHLD) received
2009/05/25 16:42:17 [alert] 5944#0: worker process 6194 exited on signal 11
2009/05/25 16:42:17 [notice] 5944#0: start worker process 6348
2009/05/25 16:42:17 [notice] 5944#0: signal 29 (SIGIO) received
2009/05/25 16:42:17 [notice] 5944#0: signal 17 (SIGCHLD) received
2009/05/25 16:42:17 [alert] 5944#0: worker process 6195 exited on signal 11
2009/05/25 16:42:17 [notice] 5944#0: start worker process 6349
2009/05/25 16:42:17 [notice] 5944#0: signal 29 (SIGIO) received
2009/05/25 16:42:17 [info] 6348#0: *227 client closed prematurely connection while reading client request line, client: 192.168.44.1, server: 192.168.44.151
后来针对红字部分在google上进行了查找,其中有这样的一个帖子,里面包含下面的内容(参考:http://www.ruby-forum.com/topic/173362)
Other browsers seems to have lower limits on total cookie size, and hence the problem doesn't manifest itself (instead, some cookies probably just discarded by other browsers).
Quick fix is to enlarge large_client_header_buffers. And the next thing to tune is proxy_buffer_size, which in turn will require enlargement.
之后我优化了
client_header_buffer_size 128k;
large_client_header_buffers 8 128k;
除此外,还有如下参数
client_max_body_size 5m;
proxy_connect_timeout 15s;
proxy_send_timeout 1m;
proxy_read_timeout 1m;
proxy_temp_file_write_size 1024m;
proxy_buffer_size 64k;
proxy_buffers 4 64k;
proxy_busy_buffers_size 128k;
proxy_ignore_client_abort on;
proxy_next_upstream error timeout invalid_header http_503;
出现上面的故障,请高手给与帮助!非常感谢 |
|