0

I want to connect to containers via nginx location blocks without making the port visible in the url for a large scale application my current block is:

location ~"/name/(.*)/(.*)/([0-9])/"{
            set port $3;
            proxy_pass http://128.0.0.7:$port;
            proxy_header Host $host;
}

I want to access the url /name/(.*)/(.*)/([0-9])/ with this (.*) unique id instead of ([0-9]) port

mtak
  • 17,262

0 Answers0