On Fri, May 03, 2019 at 01:47:40PM +0300, Sergey Kandaurov wrote: > you may want to try recursive error pages in location / {} > with error_page 502 in @server_b. Sweet, that did indeed do the trick. Thank you very much for the suggestion.