Welcome! Log In Create A New Profile

Advanced

Re: when front proxy meet reverse proxy

All files from this thread

File Name File Size   Posted by Date  
Google.png 25.8 KB open | download maven apache 03/28/2012 Read message
Jonathan Matthews
March 28, 2012 12:04PM
On 28 March 2012 15:27, maven apache <apachemaven0@gmail.com> wrote:
> 2012/3/28 Guzmán Brasó <guzman.braso@gmail.com>
>> I saw the picture but don't see any problem for nginx there, your
>> problem in that picture seems to be that you want your backend to
>> access crossdomain server but your backend do not have internet acces.
>
> Yes,this is what I want.
>
>> If that's the case, and you don't need to support thousands of cross
>> domains, you can configure Nginx to be reverse proxy of cross domain
>> server and use it to access internet from your backend, so when the
>> backends want to access crossdomain, it does so through nginx and
>> nginx indeed have internet access.
>
> Can you explain more about use the nginx be the reverse proxy of the cross
> domain?

You need to tell nginx it should accept requests for the different
cross-domain FQDNs you're using, and proxy_pass them in nginx as
appropriate.

Then arrange for your app to make its requests to nginx, not the
unreachable cross-domain server.
You may need to hosts-file the FQDNs on your app server if you can't
change the app and make it separate its understanding of the HTTP Host
header ("cross.domain.whatever.com") from the actual IP it should talk
(nginx).

It's a pretty simple setup.
We *could* write the nginx config to do this for you, but we'd be
depriving you of the excellent learning experience you'll get doing it
yourself ;-)

Have fun!

Jonathan

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

when front proxy meet reverse proxy

maven apache March 27, 2012 07:46AM

Re: when front proxy meet reverse proxy

Francis Daly March 27, 2012 04:18PM

Re: when front proxy meet reverse proxy Attachments

maven apache March 28, 2012 07:18AM

Re: when front proxy meet reverse proxy

valor March 28, 2012 10:08AM

Re: when front proxy meet reverse proxy

maven apache March 28, 2012 10:30AM

Re: when front proxy meet reverse proxy

Jonathan Matthews March 28, 2012 12:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 262
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready