how to make two sequential requests

Anton Yuzhaninov citrin at
Thu Dec 4 02:30:26 MSK 2008

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.

More information about the nginx mailing list