Tweaking FastCGI buffers settings

Rob Schultz rschultz7 at gmail.com
Thu Nov 26 19:21:08 MSK 2009


> So there is no way to avoid this warning - "upstream response is buffered to a temporary file /var/lib/nginx/fastcgi/" ??
> Since no matter how large buffer we set, this will exceed at some point as in my case I am serving images and other "files" through PHP using readfile() function.

If you have control over the scripts instead of using the php readfile() function wouldn't it be better to use nginx's http://wiki.nginx.org/NginxXSendfile to allow nginx to serve the files directly without having to pass them over fastcgi? 

Rob



More information about the nginx mailing list