Two internal ports on same host in Single Web App.

J.R. themadbeaker at
Mon Jan 27 13:00:39 UTC 2020

> I have an application runs on port 8080.
> Ex:
> This landing page has basic username and password authentication to access
> it. After login, it changes the port automatically to 8088.
> Ex:
> I need external users to access this application using only port 80 and
> Nginx to rewrite between both ports.
> Ex.
> How can I configure this. please advice.

As it looks like your example they are different directories, you just
set a different proxy for each location...

Just make sure you pay attention to the order of operations when
specifying locations.

More information about the nginx mailing list