nginx reverser proxy tomcat with tomcat not working
Francis Daly
francis at daoine.org
Mon May 22 15:42:52 UTC 2017
On Mon, May 22, 2017 at 08:32:13AM -0400, AjaySawant wrote:
Hi there,
> tomcat url redirect to a third party SAML2 provider and once it
> authenticated it redirected to http://localhost:8080/auth_app/ instead of
> http://192.168.2.6/auth_app/
> location /auth_app {
> proxy_redirect off;
Remove that line.
http://nginx.org/r/proxy_redirect
> proxy_set_header X-Forwarded-Host $host;
> proxy_set_header X-Forwarded-Server $host;
> proxy_set_header X-Forwarded-For
> $proxy_add_x_forwarded_for;
> proxy_pass http://localhost:8080/auth_app/;
(Also: maybe change that to be "proxy_pass http://localhost:8080" or
"proxy_pass http://localhost:8080/auth_app" -- things might work with
that change, though.)
Good luck with it,
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list