Welcome! Log In Create A New Profile

Advanced

Proxy_pass redirect suffix

Posted by juliocleal14 
Proxy_pass redirect suffix
May 11, 2018 07:15AM
Good Morning.
I have a problem to use the reverse proxy in nginx.
I need it to work this way:
test.example.com -> proxy_pass localhost: 8080 / test
test1.example.com -> proxy_pass localhost: 8080 / teste1
So, in the url, it would be, test.example.com/test, test1.example.com/test1, however, the user would type only test.example.com and nginx would automatically fill in the suffix.
I need to have the suffix because the applications are with hard url.

Thank you
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 317
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