Nginx proxy_intercept_errors

Kiril Kalchev kirilk at cloudxcel.com
Wed Mar 6 13:44:37 UTC 2013


Hi,

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?
This is my example config to reproduce the situation(https://gist.github.com/kirilkalchev/5098882).  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.

Thanks,
Kiril 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130306/a30028ec/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3565 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130306/a30028ec/attachment-0001.bin>


More information about the nginx mailing list