I am trying to have proxy_pass working with custom variable
location / {
set $proxy_pass_dest destination;
proxy_pass http://$proxy_pass_dest;
}
and it does not work. However:
location / {
proxy_pass http://destination;
}
works perfectly fine. What do I do wrong?