X-Accel-Redirect not redirecting to named locaiton

Francis Daly francis at daoine.org
Sun Jul 19 07:54:36 UTC 2020

On Wed, Jul 08, 2020 at 03:52:14AM -0400, latha wrote:

Hi there,

> I want to pass the response body of
> http://test.svc.cluster.local:9080/v2/test/* apis to named location
> `acreate` which does proxy_pass to another micro-service (which takes the
> response of /v2/test* api as payload). I learnt that `body_filter_by_lua`
> does not work with internal redirects, are there any other options to do
> this?

I don't know; and I have not tested it; but the "Subrequests Chaining"
example using njs on http://nginx.org/en/docs/njs/examples.html does
seem to use some of "reply.responseBody" from the first subrequest as
part of the second subrequest.

Maybe that can be adapted to what you want?

Good luck with it,

Francis Daly        francis at daoine.org

More information about the nginx mailing list