Large file upload issues (>10MB)
    iDEV d.o.o. 
    info at idev.si
       
    Thu Jun 12 14:06:43 MSD 2008
    
    
  
Hello,
we are having trouble with "large" file uploads...
The issues occour when uploading files larger than 10MB.
The uploading takes place, but when the uploading is complete I get the
message:
- The page you are looking for is temporarily unavailable.
- Please try again later. 
And the entry in the log file:
- 2008/06/08 00:13:14 [error] 13013#0: *19 upstream timed out (60:
Operation timed out) while sending request to upstream, client:
193.95.238.59, server: new.smej.se, request: "POST /savefile.i - -
HTTP/1.1", upstream: "fastcgi://unix:/tmp/ng.php:", host: "new.smej.se",
referrer: "http://new.smej.se/dodaj.i"
I've set the client_max_body_size to 300m, but it did't solve the problem.
Any suggestions?
This is my config:
user  www;
worker_processes  2;
#error_log  logs/error.log;
#error_log  logs/error.log  notice;
error_log  logs/error.log  info;
#pid        logs/nginx.pid;
events {
    worker_connections  1024;
}
http {
    include       mime.types;
#    optimize_server_names off;
    default_type  application/octet-stream;
    log_format  main  '$remote_addr - $remote_user [$time_local] $request '
'"$status" $body_bytes_sent "$http_referer" ' '"$http_user_agent"
"$http_x_forwarded_for"';
    access_log  logs/access.log  main;
    sendfile        on;
    tcp_nopush     on;
    # client_body_timeout 1200;
    tcp_nodelay off;
    # send_timeout 30m;
    keepalive_timeout  65;
    # client_header_timeout 500;
    client_max_body_size 300m;
    gzip  off;
    server {
        # proxy_next_upstream error;
        # client_body_timeout 1200;
        # proxy_read_timeout 1200;
       # client_max_body_size 300m;
        # fastcgi_read_timeout 1200;
        listen       80;
        server_name  new.smej.se;
        root /www/new.smej.se/html;
        location ~ \.flv$ {
                flv;
        }
        #access_log  logs/host.access.log  main;
        location = / {
           #root html;
           index index.html index.i index.htm index.php;
        }
        #error_page  404              /404.html;
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   /usr/local/www/nginx-dist;
        }
        location ~ \.(php|mex|i)$ {
            fastcgi_pass   unix:/tmp/ng.php;
            fastcgi_index  index.i;
            fastcgi_param  SCRIPT_FILENAME 
/www/new.smej.se/html$fastcgi_script_name;
            include        fastcgi_params;
        }
        location ~ /\.ht {
            deny  all;
        }
    }
-- 
iDEV, podjetje za spletne storitve, d.o.o.
Tomaž Marhat, CEO
Brda 15A
SI-2383 Šmartno pri Slovenj Gradcu
SLOVENIA - EU
Web: http://idev.si/
VAT #: SI43028195
Company ID #: 2346265
Mobile #: +386 70 819 789
--
bMail.si - Storitev portala mojblink.com (avtor: iDEV d.o.o.)
    
    
More information about the nginx
mailing list