# Multiples proxy for 1 servername

**URL:** <https://www.ruby-forum.com/t/multiples-proxy-for-1-servername/227346>\
**Category:** NGINX\
**Created:** [March 12, 2013, 12:37pm UTC](https://www.ruby-forum.com/t/multiples-proxy-for-1-servername/227346 "2013-03-12T12:37:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ceooph](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bc79bd/32.png) [@ceooph](https://www.ruby-forum.com/u/ceooph)\
**Post date:** [March 12, 2013, 12:37pm UTC](https://www.ruby-forum.com/t/multiples-proxy-for-1-servername/227346/1 "2013-03-12T12:37:40Z")

</div>

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](http://www.exemple.com) → [secure1.exemple.com](http://secure1.exemple.com) → [secure2.exemple.com](http://secure2.exemple.com) →   
[auth.exemple.com](http://auth.exemple.com) → [go.exemple.com](http://go.exemple.com) → [www.exemple.com](http://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](http://base1.mydomain.com)  
proxy\_ [www.exemple.com](http://www.exemple.com)  
proxy\_ [secure1.exemple.com](http://secure1.exemple.com)  
…

[base2.mydomain.com](http://base2.mydomain.com)  
proxy\_ [www.exemple2.com](http://www.exemple2.com)  
…

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

Thanks in advance for your help.
