Dynamic Mass vhosts / reverse proxying

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:

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

Looks like a “not so much used” feature ?

Posted at Nginx Forum:

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

On 11 December 2012 14:59, polleke [email protected] wrote:

Looks like a “not so much used” feature ?

Please explain why you think that’s the case.

Jonathan M. // Oxford, London, UK
http://www.jpluscplusm.com/contact.html

11.12.2012, 18:59, “polleke” [email protected] ():

Looks like a “not so much used” feature ?

Surprisingly but “map” has been initially introduced exactly for mass
hosting.