# Configuring Nginx OS to perform advanced web proxy function

**URL:** <https://www.ruby-forum.com/t/configuring-nginx-os-to-perform-advanced-web-proxy-function/244738>\
**Category:** NGINX\
**Created:** [June 6, 2016, 3:47pm UTC](https://www.ruby-forum.com/t/configuring-nginx-os-to-perform-advanced-web-proxy-function/244738 "2016-06-06T15:47:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [June 6, 2016, 3:47pm UTC](https://www.ruby-forum.com/t/configuring-nginx-os-to-perform-advanced-web-proxy-function/244738/1 "2016-06-06T15:47:38Z")

</div>

Hello,

I am certainly a newbie at Nginx. We have a need to implement a web  
proxy which performs the following functions:

1. 

```
 Receive HTTPS SOAP transactions from 40 other source servers and 

```

receive those on ports in the range 56000-56100

1. 

```
 The port number will be mapped to a specific destination server 

```

(100 destinations)

1. 

```
 The SSL transaction should be decrypted and the HTTP header 

```

edited to alter the hostname (and remove port specifier)

1. 

```
 Pass on the SOAP transaction via SSL to the destination server 

```

selected by the port number, with NATing for the source IP port.

1. 

```
 Receive the return messages and reverse the process with them 

```

back to the originating source server.

I am told by Nginx support this can be readily done with Nginx. If  
anyone can provide pointers, suggestions or other help, it would be  
greatly appreciated.

Kevin B. | Senior Systems Engineer

Frontline Technologies | 200 West Monroe, Chicago, IL 60606 | p:  
484.328.4110 |  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
| [www.FrontlineTechnologies.com](http://www.FrontlineTechnologies.com)[http://www.frontlinetechnologies.com/](http://www.frontlinetechnologies.com/)

This email may contain information that is confidential or  
attorney-client privileged and may constitute inside information. The  
contents of this email are intended only for the recipient(s) listed  
above. If you are not the intended recipient, you are directed not to  
read, disclose, distribute or otherwise use this transmission. If you  
have received this email in error, please notify the sender immediately  
and delete the transmission. Delivery of this message is not intended to  
waive any applicable privileges.

---

<div class="post-metadata">

**Author:** ![kevben](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/90ced4/32.png) [@kevben](https://www.ruby-forum.com/u/kevben)\
**Post date:** [June 6, 2016, 4:07pm UTC](https://www.ruby-forum.com/t/configuring-nginx-os-to-perform-advanced-web-proxy-function/244738/2 "2016-06-06T16:07:30Z")

</div>

> On Jun 6, 2016, at 06:46, Kevin B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> Hello,
> 
> I am certainly a newbie at Nginx. We have a need to implement a web proxy which  
> performs the following functions:

…

> I am told by Nginx support this can be readily done with Nginx. If anyone can  
> provide pointers, suggestions or other help, it would be greatly appreciated.

Have you tried looking through any of the documentation or existing  
literature to build your config?

> **[nginx documentation](https://nginx.org/en/docs/)**

If you have a specific problem or are running into undocumented issues a  
public forum may be able to help, but I don’t think spoon feeding will  
help. Sounds like you essentially want a reverse proxy.  
[Module ngx\_http\_proxy\_module](https://nginx.org/en/docs/http/ngx_http_proxy_module.html) may be a good  
place to start.
