Welcome! Log In Create A New Profile

Advanced

Eliminate port from url using nginx

Posted by audapurkar 
Eliminate port from url using nginx
December 26, 2022 02:27AM
I want to connect to containers via nginx location blocks without making the port visible in the url, my current block is:

location ~"/name/(.*)/(.*)/([0-9])/"{
set port $3;
proxy_pass http://128.0.0.1:$port;
proxy_header Host $host;
}
I want to access the url /name/(.*)/(.*)/([0-9])/ without making the port visible in the url but performing the same action
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 167
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready