Welcome! Log In Create A New Profile

Advanced

Re: X-Accel-Redirect not redirecting to named locaiton

Francis Daly
July 19, 2020 03:56AM
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,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

X-Accel-Redirect not redirecting to named locaiton

latha June 30, 2020 09:19PM

Re: X-Accel-Redirect not redirecting to named locaiton

Francis Daly July 01, 2020 04:06AM

Re: X-Accel-Redirect not redirecting to named locaiton

latha July 07, 2020 08:01PM

Re: X-Accel-Redirect not redirecting to named locaiton

Francis Daly July 19, 2020 03:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 271
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