So basically I had to proxypass the root of a web server @
/
but the application is hosted at
/ui
When they don't manually type /ui they are presented with the home page of the server, which is static and not being used. I want to initially have Nginx move you to domain.com/ui when you type domain.com then basically just do what it normally does and proxy the application.
I put this inside my https server block and it redirects the given url, in this example https://subdomain.domain.com to https://subdomain.domain.com/ui and send a permanent flag to remote browser for future reference/speed. I assume that is why atleast
or
Full Configs:
Try something like this - I can't guarantee it will work, but it's worth a shot. Basically it's saying "send requests for the UI folder to this other server". You may need the rewrite in the other answer as well or instead.