# Dynamically change reverse proxy mappings

**URL:** <https://www.ruby-forum.com/t/dynamically-change-reverse-proxy-mappings/185361>\
**Category:** NGINX\
**Created:** [March 18, 2010, 7:02pm UTC](https://www.ruby-forum.com/t/dynamically-change-reverse-proxy-mappings/185361 "2010-03-18T19:02:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![metamind](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/2acd7d/32.png) [@metamind](https://www.ruby-forum.com/u/metamind)\
**Post date:** [March 18, 2010, 7:02pm UTC](https://www.ruby-forum.com/t/dynamically-change-reverse-proxy-mappings/185361/1 "2010-03-18T19:02:27Z")

</div>

Hi,

I am wanting to reverse proxy to a number of servers running on  
different ports on one machine. These servers will come and go. Is it  
possible to dynamically change the nginx mappings without having to  
bounce the server?

Thanks

Posted at Nginx Forum:

> **[Dynamically change reverse proxy mappings](https://forum.nginx.org/read.php?2,65344,65344#msg-65344)**
>
> Hi, I am wanting to reverse proxy to a number of servers running on different ports on one machine. These servers will come and go. Is it possible to dynamically change the nginx mappings without having to bounce the server? Thanks

---

<div class="post-metadata">

**Author:** ![metamind](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/2acd7d/32.png) [@metamind](https://www.ruby-forum.com/u/metamind)\
**Post date:** [March 18, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/dynamically-change-reverse-proxy-mappings/185361/2 "2010-03-18T19:12:25Z")

</div>

Dynamic upstream management has been something on my wishlist for a  
while. It would make nginx a smarter load balancer… I believe Piotr  
or someone else might have something started for this though (in  
combination with a module) not sure.d

---

<div class="post-metadata">

**Author:** ![metamind](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/2acd7d/32.png) [@metamind](https://www.ruby-forum.com/u/metamind)\
**Post date:** [March 19, 2010, 5:23am UTC](https://www.ruby-forum.com/t/dynamically-change-reverse-proxy-mappings/185361/3 "2010-03-19T05:23:31Z")

</div>

metamind at 2010-3-19 2:01 wrote:

> Hi,
> 
> ThanksI am wanting to reverse proxy to a number of servers running on different ports on one machine. These servers will come and go. Is it possible to dynamically change the nginx mappings without having to bounce the server?

Try the health check module?

> **[GitHub - cep21/healthcheck\_nginx\_upstreams: Health checks upstreams for nginx](https://github.com/cep21/healthcheck_nginx_upstreams)**
>
> Health checks upstreams for nginx

–  
Weibin Y.

---

<div class="post-metadata">

**Author:** ![metamind](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/2acd7d/32.png) [@metamind](https://www.ruby-forum.com/u/metamind)\
**Post date:** [March 19, 2010, 1:53pm UTC](https://www.ruby-forum.com/t/dynamically-change-reverse-proxy-mappings/185361/4 "2010-03-19T13:53:20Z")

</div>

hi,

> It sounds like dynamic upstream management is exactly  
> what I’m after. It would be great if anyone has any news  
> on any work that is happening in that area.

sounds good to me as well. what would be on my wishlist is a module for  
dynamically assigning upstream weights based on criteria like for  
example  
load-1/-5/-15 of the backend server.. that would be great 🙂 🙂

greetings

---

<div class="post-metadata">

**Author:** ![metamind](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/2acd7d/32.png) [@metamind](https://www.ruby-forum.com/u/metamind)\
**Post date:** [March 19, 2010, 11:28am UTC](https://www.ruby-forum.com/t/dynamically-change-reverse-proxy-mappings/185361/5 "2010-03-19T11:28:10Z")

</div>

Hi,

It sounds like dynamic upstream management is exactly what I’m after. It  
would be great if anyone has any news on any work that is happening in  
that area.

Thanks.

Posted at Nginx Forum:

> **[Re: Dynamically change reverse proxy mappings](https://forum.nginx.org/read.php?2,65344,65543#msg-65543)**
>
> Hi, I am wanting to reverse proxy to a number of servers running on different ports on one machine. These servers will come and go. Is it possible to dynamically change the nginx mappings without having to bounce the server? Thanks

---

<div class="post-metadata">

**Author:** ![metamind](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/2acd7d/32.png) [@metamind](https://www.ruby-forum.com/u/metamind)\
**Post date:** [March 19, 2010, 6:14pm UTC](https://www.ruby-forum.com/t/dynamically-change-reverse-proxy-mappings/185361/6 "2010-03-19T18:14:29Z")

</div>

Hi,

I thought that people on this mailing list knew about this piece of  
software, but since it hasn’t been mentioned, I’ll point you to  
Nginxmgr:  
[http://just-another.net/2009/10/21/nginxmgr-nginx-upstream-pool-manager/](http://just-another.net/2009/10/21/nginxmgr-nginx-upstream-pool-manager/)

I haven’t tried it, though.

GFK’s

metamind a Ã©crit :
