Forum: NGINX Multiples proxy for 1 servername

Posted by ceooph (Guest)
on 2013-03-12 12:37
(Received via mailing list)
Hi all,

We do reverse proxy to access from internet to some documentation
filtering by ip address. These documentations are hosted on commercials
portals.
For 1 base we are often redirect between 2 or 3 (sometimes 6) servers.
(www.exemple.com -> secure1.exemple.com -> secure2.exemple.com ->
auth.exemple.com -> go.exemple.com -> www.exemple.com)
And we have access to more than 50 bases !
Do you know if with nginx it's possible to do proxy_pass (and
proxy_redirect) to these server one 1 virtual name ?

I want to write something like this

base1.mydomain.com
proxy_ www.exemple.com
proxy_ secure1.exemple.com
....

base2.mydomain.com
proxy_ www.exemple2.com
....

I try it with different location for each server but it's doesn't work.

Thanks in advance for your help.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.