When I configure it as above I am unable to access any of the sub-locations
under root...but the root directory does forward to /rootWiki/ but I receive
a 502 Bad Gateway instead of the application on port 8080.
When I remove the line:
rewrite ^/$ /rootWiki/ redirect;
I'm able to access the rootWiki application, and all the sub locations from
root just fine.
It seems to me like it should work but it does not appear to.
Re: How to get nginx to redirect to another path only if the root path is requested?
On Fri, Jan 26, 2018 at 02:24:16PM -0500, leeand00 wrote:
> How to get nginx to redirect to another path only if the root path is
I don't understand the rest of your mail; perhaps if you could show one
request that you make and the response that you get, and how it is not
the same as the response that you want, that would be clearer.