forwarding POST requests to upstream

Valery Kholodkov valery+nginxen at
Mon Apr 6 19:05:50 MSD 2009

----- Michał Jaszczyk <jasiu85 at> wrote:
> Hey,
> I work at a company where we use Nginx a lot and so far we are very
> happy with it :). Now we want to add another feature to our website
> and long story short we need to forward files that users send by POST
> requests to backends. Now I know that there exists upload module for
> Nginx, but it is a little bit not suitable for us because we would
> like not to store request body on disk, but instead immediately
> forward it to backend, even without storing the request body in
> memory, i.e. initiate request to backend as soon as the request to
> Nginx is started. Another gotcha is that the backend has to be chosen
> in a way that might require sending one more request to determine the
> backend.


> What are your thoughts about this problem? Any comment or hint will be
> appreciated :).

As far as I know nginx cannot pipe a request into upstream, since probably there was no intention initially to do like this. Moreover it is not trivial to implement from my point of view.

Valery Kholodkov

More information about the nginx mailing list