Switch between upstream server

Reinis Rozitis r at roze.lv
Thu May 28 12:45:04 UTC 2020


> But when A is not available, it should send request to B. 
> When A come back, it should send requests to A.  

You can add 'backup' for the B server and it will be used only when all others (A) are down: https://nginx.org/en/docs/http/ngx_http_upstream_module.html#server

rr



More information about the nginx mailing list