[confused] a client request body is buffered to a temporary file

Glen Lumanau glen at lumanau.web.id
Mon Jul 13 13:17:33 MSD 2009


Thank's it's working now

But have onother issue
I'm uploading a video to my backend.

I saw no errors found on the error.log
But the videos seems can't be copied to the destination folder.
Before using nginx as reverse proxy, it can be copied without any problem.

Any suggestions how can I check that?

-----Original Message-----
From: owner-nginx at sysoev.ru [mailto:owner-nginx at sysoev.ru] On Behalf Of Igor
Sysoev
Sent: 13 Juli 2009 15:24
To: nginx at sysoev.ru
Subject: Re: [confused] a client request body is buffered to a temporary
file

On Mon, Jul 13, 2009 at 03:09:12PM +0700, Glen Lumanau wrote:

> I tried to find on google for the solution for this
> 
> But still no luck
> 
>  
> 
> 2009/07/13 15:05:22 [warn] 32467#0: *6899 a client request body is
buffered
> to a temporary file /var/lib/nginx/body/0/00/0000000000, client:
> 192.168.254.16, server: mydomain.com, request: "POST
/backend.php/F3/saveTV
> HTTP/1.0", host: "mydomain.com", referrer:
> http://mydomain.com/backend.php/F3/add
> 
>  
> 
> Here's the config that I used
> 
>  
> 
> server {
> 
>           listen        80 default;
> 
>           server_name   mydomain.com www.mydomain.com;
> 
>           root          /home/web;
> 
>           index         index.php;
> 
>  
> 
>           charset utf-8;
> 
>  
> 
>           location ~ \.(gif|jpg|png|jpeg|swf|js|css|flv)$ {
> 
>                 expires     30d;
> 
>           }
> 
>  
> 
>           location / {
> 
>            proxy_set_header  X-Real-IP  $remote_addr;
> 
>            proxy_set_header Host $http_host;
> 
>            proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
> 
>  
> 
>            proxy_pass                   http://127.0.0.1:8080;
> 
>  
> 
>            client_max_body_size         500m;
> 
>            client_body_buffer_size      1024k;

You need to increase client_body_buffer_size.

>            proxy_connect_timeout        100;
> 
>            proxy_send_timeout           100;
> 
>            proxy_read_timeout           100;
> 
>  
> 
>            fastcgi_read_timeout         180;
> 
>  
> 
>            proxy_buffer_size            64k;
> 
>            proxy_buffers                4 64k;
> 
>            proxy_busy_buffers_size      128k;
> 
>            proxy_temp_file_write_size   128k;
> 
>           }
> 
>         }
> 
>  
> 
> Help me please.. i'm so confused


-- 
Igor Sysoev
http://sysoev.ru/en/






More information about the nginx mailing list