December 14, 2009 07:46AM
you can use sendfile to achieve this,

send to backend B first, set the x-accell-redirect header, which then should point to the location of backend A

for example we use this pattern for authentication, additionally you can omit the request body and rewrite the method used to access backend b

location ^~ "/_backendB" {

proxy_connect_timeout 1;
proxy_pass http://backendB;
proxy_intercept_errors on;
proxy_method GET;
proxy_pass_request_body off;
proxy_set_header Content-Length '0';
rewrite /_backendB(.*) $1;
internal;
break;
}
Subject Author Posted

Dummy proxy backends

Harish Sundararaj December 12, 2009 02:24PM

Re: Dummy proxy backends

Igor Sysoev December 12, 2009 03:10PM

Re: Dummy proxy backends

Peter Leonov December 12, 2009 05:14PM

Re: Dummy proxy backends

dobe December 14, 2009 07:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 159
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready