Welcome! Log In Create A New Profile

Advanced

Re: nginx reverser proxy tomcat with tomcat not working

Francis Daly
May 22, 2017 11:44AM
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@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx reverser proxy tomcat with tomcat not working

AjaySawant May 22, 2017 08:32AM

Re: nginx reverser proxy tomcat with tomcat not working

itpp2012 May 22, 2017 08:50AM

Re: nginx reverser proxy tomcat with tomcat not working

AjaySawant May 22, 2017 11:12AM

Re: nginx reverser proxy tomcat with tomcat not working

Aleksandar Lazic May 22, 2017 10:04AM

Re: nginx reverser proxy tomcat with tomcat not working

AjaySawant May 22, 2017 11:15AM

Re: nginx reverser proxy tomcat with tomcat not working

Francis Daly May 22, 2017 11:44AM

Re: nginx reverser proxy tomcat with tomcat not working

AjaySawant May 22, 2017 12:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 56
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready