Welcome! Log In Create A New Profile

Advanced

Nginx proxy_intercept_errors

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 3.5 KB open | download Kiril Kalchev 03/06/2013 Read message
smime.p7s 3.5 KB open | download Kiril Kalchev 03/06/2013 Read message
smime.p7s 3.5 KB open | download Kiril Kalchev 03/06/2013 Read message
smime.p7s 3.5 KB open | download Kiril Kalchev 03/06/2013 Read message
Kiril Kalchev
March 06, 2013 08:46AM
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 _______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Attachments:
open | download - smime.p7s (3.5 KB)
Subject Author Posted

Nginx proxy_intercept_errors Attachments

Kiril Kalchev March 06, 2013 08:46AM

Re: Nginx proxy_intercept_errors

Maxim Dounin March 06, 2013 08:56AM

Re: Nginx proxy_intercept_errors Attachments

Kiril Kalchev March 06, 2013 09:04AM

Re: Nginx proxy_intercept_errors

Maxim Dounin March 06, 2013 09:34AM

Re: Nginx proxy_intercept_errors Attachments

Kiril Kalchev March 06, 2013 09:46AM

Re: Nginx proxy_intercept_errors

Maxim Dounin March 06, 2013 10:46AM

Re: Nginx proxy_intercept_errors Attachments

Kiril Kalchev March 06, 2013 10:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 270
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready