When nginx proxy_pass is a dynamic value expected to be build by substituting hostname part in URL, nginx is failing to proxy request with error: no resolver defined to resolve service where service=$1. Instead of trying to resolve service.abcd.local, it seems it is trying to resolve just service. Is there solution to this ?
location ~ ^/(.*)/(.*)$ {
proxy_pass http://$1.abcd.local/$1/$2;
}
resolverdirective)?/a/b/c/dyour regexp will result in$1 = /a/b/c,$2 = d, and proxy url will behttp://a/b/c/.abcd.local/...., and nginx absolutely right to try to resolve hostnamea.resolver?