[PATCH] optionally avoid sending body of PUT request before X-Accel redirect

Maxim Dounin mdounin at mdounin.ru
Sat Aug 6 14:39:48 UTC 2016


Hello!

On Fri, Aug 05, 2016 at 10:14:36AM +0000, Jakub Moscicki wrote:

> Hello,
> 
> Would this kind of patch make sense to include in nginx upstream? If yes, then we would prepare it properly as an option (similar to proxy_pass_request_body).
> 
> Use-case: at CERN we use nginx as a reverse proxy for Webdav/HTTP access to our large-scale storage system (https://eos.readthedocs.io, https://eos.web.cern.ch) and in particular for Sync&Share service called CERNBox (https://www.researchgate.net/publication/288020928_CERNBox_EOS_end-user_storage_for_science).
> 
> All client file transfer requests (PUT and GET) are first passed to a metadata upstream server which performs an (internal) redirect to a (calculated) storage node (http upstream server).
> 
> In case of PUT we do not want and need to send the body to the metadata server but only to the storage node after internal X-Accel redirect. Hence, we have made this patch (on 1.6.2):

Consider using "proxy_pass_request_body off" instead, see 
http://nginx.org/r/proxy_pass_request_body.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx-devel mailing list