Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

using upstream module that won't override the original request

$
0
0
I'm trying to hold a client request to backend (not go to the server yet), issue an upstream request to another server, then parse the upstream response, store it in my orig. request ctx, only then go to backend server (original request), and in the output filter inject some of the ctx data i stored before - to the backend response.

i tried to do all that with a subrequest but then Maxim told me that the subrequest was not designed for that - hence no support in my method.
Now if i use upstream instead - it overrides the original request and sends its own response to the client.
so how can i achieve my goal ?

Ref:
see Maxim's response to a similar thread here:
http://web.archiveorange.com/archive/v/yKUXMonlhsVD7yQtg8xL
see my new subrequest method & discussion here:
http://forum.nginx.org/read.php?2,237362
(nginx core crashes when using my method + flag of 'ignore client abort'=on and no solution from nginx developers for that)

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>