How to make two sequential requests


#1

Hi all,

when a client request arrives
I have to do two requests to two different real servers(A, B) in order.
The second request, which is to B, is created based on A’s response on
the fly.

Any ideas?

Thanks very much


#2

Yan Cheng wrote:

when a client request arrives
I have to do two requests to two different real servers(A, B) in order.
The second request, which is to B, is created based on A’s response on
the fly.

Any ideas?

Return in A’s response X-Accel-Redirect header which points to B.