# Feature Request proxy\_pass\_interface

**URL:** <https://www.ruby-forum.com/t/feature-request-proxy-pass-interface/201658>\
**Category:** NGINX\
**Created:** [January 12, 2011, 2:14pm UTC](https://www.ruby-forum.com/t/feature-request-proxy-pass-interface/201658 "2011-01-12T14:14:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [January 12, 2011, 2:14pm UTC](https://www.ruby-forum.com/t/feature-request-proxy-pass-interface/201658/1 "2011-01-12T14:14:27Z")

</div>

For one of my clients I require the ability to choose the outgoing  
interface  
for proxy\_pass, is it possible?

Also how does nginx currently choose which interface to use on a system  
with  
mutliple?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 12, 2011, 2:38pm UTC](https://www.ruby-forum.com/t/feature-request-proxy-pass-interface/201658/2 "2011-01-12T14:38:20Z")

</div>

Hello,

> Also how does nginx currently choose which interface to use on a system  
> with mutliple?

You can use “proxy\_bind” directive for that (nginx-0.8.22+).

Best regards,  
Piotr S. \< [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) \>

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 12, 2011, 2:57pm UTC](https://www.ruby-forum.com/t/feature-request-proxy-pass-interface/201658/3 "2011-01-12T14:57:14Z")

</div>

Thanks, Its not in the documentation:  
[http://wiki.nginx.org/HttpProxyModule](http://wiki.nginx.org/HttpProxyModule)

guess, its too new.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 14, 2011, 11:38am UTC](https://www.ruby-forum.com/t/feature-request-proxy-pass-interface/201658/4 "2011-01-14T11:38:24Z")

</div>

I got a feature request, variable support for proxy\_bind.

[emerg] invalid address “$server\_addr” ☹

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 12, 2011, 3:04pm UTC](https://www.ruby-forum.com/t/feature-request-proxy-pass-interface/201658/5 "2011-01-12T15:04:48Z")

</div>

Hello,

> Thanks, Its not in the documentation:  
> [GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com · GitHub](http://wiki.nginx.org/HttpProxyModule)
> 
> guess, its too new.

Wiki isn’t official, it’s community-contributed documentation.  
There is no official documentation in English.

Feel free to add “proxy\_bind” to the wiki.

Best regards,  
Piotr S. \< [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) \>

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 14, 2011, 1:08pm UTC](https://www.ruby-forum.com/t/feature-request-proxy-pass-interface/201658/6 "2011-01-14T13:08:52Z")

</div>

Thanks, hoping it will get pushed to trunk. Come on Igor, its a must for  
people running nginx as a foward proxy over multiple IPs

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 14, 2011, 12:57pm UTC](https://www.ruby-forum.com/t/feature-request-proxy-pass-interface/201658/7 "2011-01-14T12:57:32Z")

</div>

Hello!

On Fri, Jan 14, 2011 at 09:37:04PM +1100, SplitIce wrote:

> I got a feature request, variable support for proxy\_bind.
> 
> [emerg] invalid address “$server\_addr” ☹

> **[\[PATCH\] Upstream: proxy\_bind/fastcgi\_bind/memcached\_bind	variables	support](http://mailman.nginx.org/pipermail/nginx-devel/2010-August/000419.html)**

Maxim D.
