Uploads with nginx 1.0.12

Adrián Navarro adrian at navarro.at
Wed Feb 29 19:59:03 UTC 2012


I am using file uploads with nginx 1.0.12, php5-fpm and php 5.3.10.

Currently, big file uploads (~1300 MB) do take about 30 seconds to process
after the file is being uploaded, and the CPU load spikes. Is there a way
to prevent that?

I am using a very simple script (just a var_dump($_FILES), nothing more,
just debugging) and the config looks like the following:
location ~ \.php$ {
fastcgi_pass_request_body off;
 client_body_in_file_only clean;
fastcgi_param  REQUEST_BODY_FILE  $request_body_file;
 fastcgi_send_timeout 120;
fastcgi_read_timeout 120;
fastcgi_index index.php;
 include fastcgi_params;

Hope that someone can shed light into this…

Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120229/bd2a365e/attachment.html>

More information about the nginx mailing list