nginx reverser proxy tomcat with tomcat not working

Francis Daly francis at
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

>                 location /auth_app {
>                         proxy_redirect off;

Remove that line.

>                         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,

Francis Daly        francis at

More information about the nginx mailing list