# Forward Proxy config for iPads for soon to go Live site

**URL:** <https://www.ruby-forum.com/t/forward-proxy-config-for-ipads-for-soon-to-go-live-site/246356>\
**Category:** NGINX\
**Created:** [October 4, 2013, 5:17pm UTC](https://www.ruby-forum.com/t/forward-proxy-config-for-ipads-for-soon-to-go-live-site/246356 "2013-10-04T17:17:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [October 4, 2013, 5:17pm UTC](https://www.ruby-forum.com/t/forward-proxy-config-for-ipads-for-soon-to-go-live-site/246356/1 "2013-10-04T17:17:41Z")

</div>

Hi, I’m an nginx newbie and I need to configure it as an externally  
available forward proxy for manually configured iPads running an iOS app  
to  
test a soon to go Live website.  
You cannot change host files on an iPad but we can ask our external  
testers  
to configure the proxy settings manually.  
The old website is still “live” and has the old IP DNS’s but we want to  
use  
the same domain name but pointing to the new IP address.  
I have installed nginx-1.4.2-1.el6.ngx.x86\_64.rpm and it’s up and  
running  
but I need some help in how to get the configuration setup.  
I will like to resolve to this domain using the /etc/hosts or any other  
way  
that I could accomplish it and forward the requests to the new site.  
We cannot switch the DNS yet or assign a new DNS name to this IP as it’s  
all  
ready to go with the original named SSL certs etc  
Any help will be really appreciated.  
Thanks.

Posted at Nginx Forum:

> **[Forward Proxy config for iPads for soon to go Live site](https://forum.nginx.org/read.php?2,243438,243438#msg-243438)**
>
> Hi, I'm an nginx newbie and I need to configure it as an externally available forward proxy for manually configured iPads running an iOS app to test a soon to go Live website. You cannot change host files on an iPad but we can ask our external...

---

<div class="post-metadata">

**Author:** ![IggyDolby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/8dc957/32.png) [@IggyDolby](https://www.ruby-forum.com/u/IggyDolby)\
**Post date:** [October 4, 2013, 5:26pm UTC](https://www.ruby-forum.com/t/forward-proxy-config-for-ipads-for-soon-to-go-live-site/246356/2 "2013-10-04T17:26:27Z")

</div>

Hello!

On Fri, Oct 04, 2013 at 11:17:09AM -0400, IggyDolby wrote:

> Hi, I’m an nginx newbie and I need to configure it as an externally  
> available forward proxy for manually configured iPads running an iOS app to  
> test a soon to go Live website.

Just a disclaimer:

Please note that nginx is reverse proxy, it’s not forward proxy,  
and it was never designed to be. While it could be possible to  
configure nginx as a forward proxy, it’s unsupported and may have  
problems, including security ones.

> You cannot change host files on an iPad but we can ask our external testers  
> to configure the proxy settings manually.  
> The old website is still “live” and has the old IP DNS’s but we want to use  
> the same domain name but pointing to the new IP address.  
> I have installed nginx-1.4.2-1.el6.ngx.x86\_64.rpm and it’s up and running  
> but I need some help in how to get the configuration setup.  
> I will like to resolve to this domain using the /etc/hosts or any other way  
> that I could accomplish it and forward the requests to the new site.  
> We cannot switch the DNS yet or assign a new DNS name to this IP as it’s all  
> ready to go with the original named SSL certs etc

If you already have nginx acting as a proxy for you (presumably  
using proxy\_pass with variables and a resolver, if /etc/hosts  
doesn’t work for you out of the box), an override of a particular  
hostname can be easily done using an upstream{} block with a given  
name.

> **[Module ngx\_http\_upstream\_module](http://nginx.org/en/docs/http/ngx_http_upstream_module.html#upstream)**
>
> The ngx\_http\_upstream\_module module is used to define groups of servers that can be referenced by the proxy\_pass, fastcgi\_pass, uwsgi\_pass, scgi\_pass, memcached\_pass, and grpc\_pass directives.

–  
Maxim D.

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

---

<div class="post-metadata">

**Author:** ![IggyDolby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/8dc957/32.png) [@IggyDolby](https://www.ruby-forum.com/u/IggyDolby)\
**Post date:** [October 4, 2013, 5:45pm UTC](https://www.ruby-forum.com/t/forward-proxy-config-for-ipads-for-soon-to-go-live-site/246356/3 "2013-10-04T17:45:09Z")

</div>

Thanks for your reply, would you suggest to use some other open source  
proxy  
like Squid or Varnish to use as forward proxy?

Posted at Nginx Forum:

> **[Re: Forward Proxy config for iPads for soon to go Live site](https://forum.nginx.org/read.php?2,243438,243441#msg-243441)**
>
> Hi, I'm an nginx newbie and I need to configure it as an externally available forward proxy for manually configured iPads running an iOS app to test a soon to go Live website. You cannot change host files on an iPad but we can ask our external...

---

<div class="post-metadata">

**Author:** ![IggyDolby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/8dc957/32.png) [@IggyDolby](https://www.ruby-forum.com/u/IggyDolby)\
**Post date:** [October 4, 2013, 5:59pm UTC](https://www.ruby-forum.com/t/forward-proxy-config-for-ipads-for-soon-to-go-live-site/246356/4 "2013-10-04T17:59:11Z")

</div>

Hello!

On Fri, Oct 04, 2013 at 11:44:41AM -0400, IggyDolby wrote:

> Thanks for your reply, would you suggest to use some other open source proxy  
> like Squid or Varnish to use as forward proxy?

Squid is known to work.

Varnish, as far as I can tell, isn’t a forward proxy either, much  
like nginx.

–  
Maxim D.

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