News for hackers. Stuff that matters.
Re:Nginx with dynamic upstreams by tombozi on Sunday July 26, 2015 @12:59PM (#9951535)
You can use the $host variable

See: http://nginx.org/en/docs/http/ngx_http_core_module.html#var_... And: http://stackoverflow.com/a/15414811

Always be careful with user input though.

Re:Nginx with dynamic upstreams by corobo on Sunday July 26, 2015 @01:24PM (#9951621)
well damn that's such a simple solution if that variable works in proxy_pass.. One of those "How did I miss that?" solutions

Of course rigorous testing before going live, but it gives options. I love options :)