Welcome! Log In Create A New Profile

Advanced

Re: 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 09:04AM
Is there any way to force nginx to read request body? I really don't care about this overhead, I hit connection limit much more faster. Thank you for the super fast answer.

Regards,
Kiril

On Mar 6, 2013, at 3:54 PM, Maxim Dounin wrote:

> Hello!
>
> On Wed, Mar 06, 2013 at 03:44:37PM +0200, Kiril Kalchev wrote:
>
>> 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.
>
> With proxy_intercept_errors nginx doesn't read the response body
> if a response returned is the error, and the upstream connection
> can't be kept alive due to this (unless there is no body and it's
> known after reading response headers).
>
> --
> Maxim Dounin
> http://nginx.org/en/donation.html
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
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: 147
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