You are right, those lines are logged (i've forced upstreams to fail by stopping them). But i can't see such problem using "proxy_pass http://127.0.0.1:81" instead of "proxy_pass http://http_backend" (no more 502 errors). Strange... Posted at Nginx Forum: https://forum.nginx.org/read.php?2,292491,292498#msg-292498