Welcome! Log In Create A New Profile

Advanced

New value for client_body_in_file_only together with the proxy module

Posted by galfyo 
New value for client_body_in_file_only together with the proxy module
May 02, 2011 08:58AM
I want to use NGINX as a reverse proxy.

Web Browser -> NGING -> backend

I want to handle upload of big files and would like to make it as quick as possible. My idea is to use NGINX to store the big request body to a file and pass to the backend only the temporary location of the file and skip the request body from the forwarded (the one from NGINX to the backend) request

At the moment I use the following

location / {
proxy_set_header X-Request-Body-File $request_body_file;
}

The problem with this configuration is that the request body file is removed before the backend starts to process the request.

Will it be possible to have
client_body_in_file_only proxy;

or

proxy_client_body_in_file clean;

that keeps the request body file until the backend gives back a response

Regards,
Gal




And I would like to set the NGINX to store big request bodies alway to a file and keep them until the complete request is transfered to the backend with the option to not resend the body to the backend.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 93
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready