buffering / uploading large files

Valentin V. Bartenev vbart at nginx.com
Tue Feb 3 12:47:05 UTC 2015


On Tuesday 03 February 2015 01:26:48 nginxuser100 wrote:
> Hi, the situation that I am trying to solve is what happens if the client's
> request is larger than the configured client_max_body_size. Turning off
> buffering by nginx should resolve the problem as nginx would forward every
> packet to the back-end server as it comes in. Did I misunderstand the
> purpose of "fastcgi_request_buffering off;"? Thanks.
> 

Then all you need is to configure reasonable client_max_body_size.
The main purpose of this directive is to protect your server from
uploading unlimited amount of data.

  wbr, Valentin V. Bartenev



More information about the nginx mailing list