3 ms·
You can use the $host variable See: http://nginx.org/en/docs/http/ngx_http_core_module.html#var_host http://nginx.org/en/docs/http/ngx_http_core_module.html#va
by tombozi 11y ago
You can use the $host variable
See: http://nginx.org/en/docs/http/ngx_http_core_module.html#var_host http://nginx.org/en/docs/http/ngx_http_core_module.html#var_...
And: http://stackoverflow.com/a/15414811 http://stackoverflow.com/a/15414811
Always be careful with user input though.
- corobo 11y agowell 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 :)