Re: Nginx proxy_intercept_errors

2013-03-06 Thread Kiril Kalchev
Yes you are right. Thank you. On Mar 6, 2013, at 5:44 PM, Maxim Dounin wrote: > Hello! > > On Wed, Mar 06, 2013 at 04:45:33PM +0200, Kiril Kalchev wrote: > >> Just for the record, I think I found a kind of solution. It >> looks good if my backend returns http codes 3xx. I have tried >> with

Re: Nginx proxy_intercept_errors

2013-03-06 Thread Maxim Dounin
Hello! On Wed, Mar 06, 2013 at 04:45:33PM +0200, Kiril Kalchev wrote: > Just for the record, I think I found a kind of solution. It > looks good if my backend returns http codes 3xx. I have tried > with 333 and 334 and it looks great. I know it is an ugly hack, > but my findings may help to o

Re: Nginx proxy_intercept_errors

2013-03-06 Thread Kiril Kalchev
Just for the record, I think I found a kind of solution. It looks good if my backend returns http codes 3xx. I have tried with 333 and 334 and it looks great. I know it is an ugly hack, but my findings may help to other poor souls. I hope this behavior will not change in the next versions. Re

Re: Nginx proxy_intercept_errors

2013-03-06 Thread Maxim Dounin
Hello! On Wed, Mar 06, 2013 at 04:02:30PM +0200, Kiril Kalchev wrote: > 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. No, there is no way to force nginx to read re

Re: Nginx proxy_intercept_errors

2013-03-06 Thread Kiril Kalchev
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, Ki

Re: Nginx proxy_intercept_errors

2013-03-06 Thread Maxim Dounin
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://gi

Nginx proxy_intercept_errors

2013-03-06 Thread Kiril Kalchev
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 se