Forum: NGINX Dynamic Mass vhosts / reverse proxying

Posted by polleke (Guest)
on 2012-12-11 14:26
(Received via mailing list)
I'm trying to configure mass (300+) dynamic vhosts and reverse proxying.

users come in at: https://test.abc.example.com and should be 
transparantly
proxied to: http://foo.abc.somethingelse.net

Anyone who has this kind of config running ?
- tried regular expressions
- wildcard certificate available

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,233866,233866#msg-233866
Posted by Antonio P.P. Almeida (Guest)
on 2012-12-11 14:31
(Received via mailing list)
> I'm trying to configure mass (300+) dynamic vhosts and reverse proxying.
>
> users come in at: https://test.abc.example.com and should be transparantly
> proxied to: http://foo.abc.somethingelse.net
>
> Anyone who has this kind of config running ?
> - tried regular expressions
> - wildcard certificate available

Look up the map directive:

http://nginx.org/en/docs/http/ngx_http_map_module.html#map

I think it's the most suitable thing for your setup.

--appa
Posted by polleke (Guest)
on 2012-12-11 16:00
(Received via mailing list)
Looks like a "not so much used"  feature ?

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,233866,233872#msg-233872
Posted by Jonathan Matthews (Guest)
on 2012-12-11 16:14
(Received via mailing list)
On 11 December 2012 14:59, polleke <nginx-forum@nginx.us> wrote:
> Looks like a "not so much used"  feature ?

Please explain why you think that's the case.
--
Jonathan Matthews // Oxford, London, UK
http://www.jpluscplusm.com/contact.html
Posted by Antonio P.P. Almeida (Guest)
on 2012-12-11 16:21
(Received via mailing list)
> Looks like a "not so much used"  feature ?

Why do you say that?

If you go to the russian language list is often talked about and
even here it has been growing.

It's the most clean way to implement what you want IMHO.

--appa
Posted by Igor Sysoev (Guest)
on 2012-12-11 16:34
(Received via mailing list)
11.12.2012,  18:59, "polleke" <nginx-forum@nginx.us> ():

> Looks like a "not so much used"  feature ?

Surprisingly but "map" has been initially introduced exactly for mass 
hosting.
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.