I would like to do something like this:
location / {
if($http_x_my_header == 'some-value') {
proxy_pass "https://a/";
}
# else
proxy_pass "https://b/";
}
Because I know that using "IF" in NGINX can be kind of problematic: How would I solve this following "best practices"?