# Nginx with Organization PROXY server

**URL:** <https://www.ruby-forum.com/t/nginx-with-organization-proxy-server/242671>\
**Category:** NGINX\
**Created:** [July 14, 2015, 3:50pm UTC](https://www.ruby-forum.com/t/nginx-with-organization-proxy-server/242671 "2015-07-14T15:50:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [July 14, 2015, 3:50pm UTC](https://www.ruby-forum.com/t/nginx-with-organization-proxy-server/242671/1 "2015-07-14T15:50:23Z")

</div>

Hello ,

on a linux box I define to move the traffic through some Centralize  
proxy server ( Organization one )  
in order to configure the proxy from the command line I ran :  
export HTTP\_PROXY=“http://\<proxy\_server\>:”

On the same box I have nginx which serve as a reverse proxy and all  
the local application sending the traffic through the local reverse  
proxy

how can I force the nginx to fwd all the traffic through the ORG proxy  
server ?

chart …

```
        Linux Box Proxy

```

server | Internet |  
|--------------------------------------------| =\>  
|---------------------------| =\>  
\<node.js code \> -\> \< nginx \> Organization Proxy  
| |

Thanks !

---

<div class="post-metadata">

**Author:** ![Shay\_Peretz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c67d28/32.png) [@Shay\_Peretz](https://www.ruby-forum.com/u/Shay_Peretz)\
**Post date:** [July 14, 2015, 9:30pm UTC](https://www.ruby-forum.com/t/nginx-with-organization-proxy-server/242671/2 "2015-07-14T21:30:59Z")

</div>

Any plan for supporting it ?

Posted at Nginx Forum:

> **[Re: Nginx with Organization PROXY server](https://forum.nginx.org/read.php?2,260278,260296#msg-260296)**
>
> Hello , on a linux box I define to move the traffic through some Centralize proxy server ( Organization one ) in order to configure the proxy from the command line I ran : export HTTP\_PROXY="http://\<proxy\_server\>:\<proxy port\>"...

---

<div class="post-metadata">

**Author:** ![Shay\_Peretz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c67d28/32.png) [@Shay\_Peretz](https://www.ruby-forum.com/u/Shay_Peretz)\
**Post date:** [July 14, 2015, 9:12pm UTC](https://www.ruby-forum.com/t/nginx-with-organization-proxy-server/242671/3 "2015-07-14T21:12:52Z")

</div>

Hello!

On Tue, Jul 14, 2015 at 04:49:46PM +0300, Shay Peretz wrote:

> how can I force the nginx to fwd all the traffic through the ORG proxy server ?

You can’t.

–  
Maxim D.

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

---

<div class="post-metadata">

**Author:** ![Shay\_Peretz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c67d28/32.png) [@Shay\_Peretz](https://www.ruby-forum.com/u/Shay_Peretz)\
**Post date:** [July 15, 2015, 4:27pm UTC](https://www.ruby-forum.com/t/nginx-with-organization-proxy-server/242671/4 "2015-07-15T16:27:46Z")

</div>

Try incorporating haproxy ([http://www.haproxy.org/](http://www.haproxy.org/)) or Apache Traffic  
Server ([http://trafficserver.apache.org/](http://trafficserver.apache.org/)) into your setup. I use NGINX  
to  
terminate SSL/SPDY then haproxy to direct the request to the appropriate  
backend server pool - Haproxy is very good at being a reverse proxy but  
has  
no forward proxy features. ATS can terminate SSL/SPDY/HTTP2 and function  
very well as a forward or reverse proxy, but lacks the pooling,  
manipulation, and routing facilities that haproxy and nginx provide.

---

<div class="post-metadata">

**Author:** ![Shay\_Peretz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c67d28/32.png) [@Shay\_Peretz](https://www.ruby-forum.com/u/Shay_Peretz)\
**Post date:** [July 14, 2015, 10:13pm UTC](https://www.ruby-forum.com/t/nginx-with-organization-proxy-server/242671/5 "2015-07-14T22:13:38Z")

</div>

Hello!

On Tue, Jul 14, 2015 at 03:30:11PM -0400, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Any plan for supporting it ?

No.

–  
Maxim D.

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

---

<div class="post-metadata">

**Author:** ![Shay\_Peretz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c67d28/32.png) [@Shay\_Peretz](https://www.ruby-forum.com/u/Shay_Peretz)\
**Post date:** [July 15, 2015, 9:33pm UTC](https://www.ruby-forum.com/t/nginx-with-organization-proxy-server/242671/6 "2015-07-15T21:33:52Z")

</div>

Thanks for the recommendation ,  
I am using nginx as a reverse proxy on each one of my application server  
.  
the reason I am doing it is , my application server connect to a  
backend  
system which can be available on 2 domains ,  
the nginx as a reverse proxy on my application system verify that if one  
domain is down it automatically use the 2nd one which might be available  
.  
The problem I am having is once the application server need to connect  
to  
the backend through a proxy server , the nginx dont know how to move the  
traffic through a proxy which require authentication and configuration .

I start check how complex will it be to update the nginx source code ,  
Can  
anyone from the nginx team estimate how complex it will be if possible  
@  
all ?

Posted at Nginx Forum:

> **[Re: Nginx with Organization PROXY server](https://forum.nginx.org/read.php?2,260278,260332#msg-260332)**
>
> Hello , on a linux box I define to move the traffic through some Centralize proxy server ( Organization one ) in order to configure the proxy from the command line I ran : export HTTP\_PROXY="http://\<proxy\_server\>:\<proxy port\>"...
