buffering / uploading large files

nginxuser100 nginx-forum at nginx.us
Mon Feb 2 06:35:58 UTC 2015


Thanks Kurt.

The patch compiled and got installed fine. I no longer get an unknown
directive error msg. However, the client's POST request of 1.5M of data
still gives me this error "413 Request Entity Too Large"

even though I added "fastcgi_request_buffering off;"

    location / {
        include fastcgi_params;
        fastcgi_request_buffering off;
        fastcgi_pass   127.0.0.1:9000;
    }

Here was my test:
curl -X POST -T testfile -v 'http://localhost:80/'

> POST /testfile HTTP/1.1
> User-Agent: curl/7.19.7 (i386-redhat-linux-gnu) libcurl/7.19.7
NSS/3.16.2.3 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: localhost
> Accept: */*
> Content-Length: 1474560
> Expect: 100-continue
> 
< HTTP/1.1 413 Request Entity Too Large
< Server: nginx/1.7.9
< Date: Sun, 01 Feb 2015 20:04:25 GMT
< Content-Type: text/html
< Content-Length: 198
< Connection: close

Has anyone tried the fastcgi_request_buffering ... or am I missing
something? Thanks.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,256378,256390#msg-256390



More information about the nginx mailing list