Welcome! Log In Create A New Profile

Advanced

Re: forwarding POST requests to upstream

Valery Kholodkov
April 06, 2009 11:05AM
----- Michał Jaszczyk <jasiu85@gmail.com> 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.

--
Regards,
Valery Kholodkov
Subject Author Posted

forwarding POST requests to upstream

Michał Jaszczyk April 06, 2009 06:03AM

Re: forwarding POST requests to upstream

Valery Kholodkov April 06, 2009 11:05AM

Re: forwarding POST requests to upstream

Michał Jaszczyk April 06, 2009 11:45AM

Re: forwarding POST requests to upstream

Igor Sysoev April 06, 2009 12:41PM

Re: forwarding POST requests to upstream

Michał Jaszczyk April 06, 2009 01:45PM

Re: forwarding POST requests to upstream

Igor Sysoev April 07, 2009 03:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 281
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready