nginx 出现a client request body is buffered to a temporary file 错误

如果nginx的错误日志里有很多a client request body is buffered to a temporary file

或者是AN UPSTREAM RESPONSE IS BUFFERED TO A TEMPORARY FILE,一般是由于客户端的请求数据大于了nginx

的缓冲大小,可以设置:

   client_max_body_size 20m; 
    client_body_buffer_size 1024k;

或者参考:http://homeserver.com.tw/2011/12/01/nginx%E7%9A%84%E8%A8%8A%E6%81%AFan-upstream-response-is-buffered-to-a-temporary-file/