来源: upstream sent too big header while reading response header from upstream_·L,`M_新浪博客
年底了事情真多,club服务器有问必答 提交页面 提交出这个问题
The page you are looking for is temporarily unavailable.Please try again later.
一看就知道是nginx的请求的错误,,惆怅啊。。
就开启了 错误日志查看。。。
tail -f error.log
就具体错误是 :
upstream sent too big header while reading response header from upstream
我们是nginx反向代理
proxy是nginx作为client转发时使用的,如果header过大,超出了默认的1k,就会引发上述的upstream sent too big header (说白了就是nginx把外部请求给后端apache ,apache返回的header
#添加这3行 ,
…………
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on
011/01/07 11:12:57 [error] 10770#0: *38585340 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 116.22.131.154, server: *.xywy.com, request: “GET /ysmp/index.php?did=124994 HTTP/1.0”, upstream: “http://127.0.0.1:8080/ysmp/index.php?did=124994”, host: “xywy.yn16.com”
后来原来那错误没了出了新错误了 upstream timed out 超时?
server {
后来参数我又改了下 就好了。。。