<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>I have noticed that when I set 'proxy_intercept_errors on;' in my nginx config it kills tcp connection to the origin server if it returns 4xx or 5xx?</div><div>This is my example config to reproduce the situation(<a href="https://gist.github.com/kirilkalchev/5098882">https://gist.github.com/kirilkalchev/5098882</a>). I am in a situation where my backend server returns only 403 and 404 (it is some kind of home made authentication system 403 means go away 404 means continue) and I need to display different things in this cases, but without keep alive connections to the backend are exhausted pretty fast.</div><div><br></div><div>Thanks,</div><div>Kiril </div></body></html>