I use nginx reverse-proxy
When I use this code it works
location / {
proxy_pass https://test.serverA.com;
proxy_redirect off;
}
But when I use this code it doesn't work
set $sub test;
location / {
proxy_pass https://$sub.serverA.com;
proxy_redirect off;
}
Does anyone know the reason?