# New directive: proxy\_next\_tries N

**URL:** <https://www.ruby-forum.com/t/new-directive-proxy-next-tries-n/228480>\
**Category:** NGINX\
**Created:** [April 23, 2013, 10:20pm UTC](https://www.ruby-forum.com/t/new-directive-proxy-next-tries-n/228480 "2013-04-23T22:20:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![duv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e5b9ba/32.png) [@duv](https://www.ruby-forum.com/u/duv)\
**Post date:** [April 23, 2013, 10:20pm UTC](https://www.ruby-forum.com/t/new-directive-proxy-next-tries-n/228480/1 "2013-04-23T22:20:48Z")

</div>

Short description: Will attempt only N upstreams and then fail with last  
error

I didn’t commit this to any trunk/branch,  
This is my first patch so I’m not sure how it goes.  
I submitted a gist of it to:  
[https://gist.github.com/shai-d/5446961](https://gist.github.com/shai-d/5446961)

Hope you will find it useful.  
Shai Duvdevani.

Posted at Nginx Forum:

> **[new directive: proxy\_next\_tries N](https://forum.nginx.org/read.php?2,238589,238589#msg-238589)**
>
> Short description: Will attempt only N upstreams and then fail with last error I didn't commit this to any trunk/branch, This is my first patch so I'm not sure how it goes. I submitted a gist of it to: https://gist.github.com/shai-d/5446961 Hope yo

---

<div class="post-metadata">

**Author:** ![duv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e5b9ba/32.png) [@duv](https://www.ruby-forum.com/u/duv)\
**Post date:** [April 24, 2013, 2:13pm UTC](https://www.ruby-forum.com/t/new-directive-proxy-next-tries-n/228480/2 "2013-04-24T14:13:29Z")

</div>

Hello!

On Tue, Apr 23, 2013 at 04:20:06PM -0400, duv wrote:

> Short description: Will attempt only N upstreams and then fail with last  
> error
> 
> I didn’t commit this to any trunk/branch,  
> This is my first patch so I’m not sure how it goes.  
> I submitted a gist of it to:  
> [https://gist.github.com/shai-d/5446961](https://gist.github.com/shai-d/5446961)
> 
> Hope you will find it useful.  
> Shai Duvdevani.

Replied with a review to a patch you’ve sent in a personal mail.  
Please use nginx-devel@ mailing list for further patch submits.

–  
Maxim D.

> **[nginx: donation](http://nginx.org/en/donation.html)**
