网站又访问很慢了,有时还打不开,查看错误日志,发现大量的超时错误,日志如下:
2012/11/07 11:15:38 [error] 16388#0: *355033 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 123.22.117.33, server: www.xxxx.com, request: "POST /NewReport/DMList/ HTTP/1.1", upstream: "http://172.16.20.5:80/NewReport/DMList/", host: "www.xxxx.com", referrer: "http://www.xxxx.com/NewReport/DM"
2012/11/07 11:15:38 [error] 16388#0: *355033 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 123.22.117.33, server: www.xxxx.com, request: "POST /NewReport/DMList/ HTTP/1.1", upstream: "http://172.16.20.5:80/NewReport/DMList/", host: "www.xxxx.com", referrer: "http://www.xxxx.com/NewReport/DM"
2012/11/07 11:15:38 [error] 16388#0: *355033 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 123.22.117.33, server: www.xxxx.com, request: "POST /NewReport/DMList/ HTTP/1.1", upstream: "http://172.16.20.5:80/NewReport/DMList/", host: "www.xxxx.com", referrer: "http://www.xxxx.com/NewReport/DM"
网上查询了一下,发现有篇文章可以解决,解决方法如下:
03 |
server_name www.xxxx.com ; |
04 |
large_client_header_buffers 4 16k; |
05 |
client_max_body_size 300m; |
06 |
client_body_buffer_size 128k; |
07 |
proxy_connect_timeout 600; |
08 |
proxy_read_timeout 600; |
09 |
proxy_send_timeout 600; |
10 |
proxy_buffer_size 64k; |
12 |
proxy_busy_buffers_size 64k; |
13 |
proxy_temp_file_write_size 64k; |
15 |
........................ |