Re: nginx reverser proxy tomcat with tomcat not working

2017-05-22 Thread AjaySawant
Thanks Francis. Worked like a charm. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,274372,274383#msg-274383 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx reverser proxy tomcat with tomcat not working

2017-05-22 Thread Francis Daly
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 { >

Re: nginx reverser proxy tomcat with tomcat not working

2017-05-22 Thread AjaySawant
There is no error in tomcat and nginx. I am using default tomcat The output of nginx -v and server.xml is given below == nginx version: nginx/1.6.1 built by gcc 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) T

Re: nginx reverser proxy tomcat with tomcat not working

2017-05-22 Thread AjaySawant
I configured nginx as a reverse proxy to tomcat as I don't want to show the IP of my back end. Tomcat is running on 192.168.2.6 port 8080 and I want to serve tomcat via nginx on prt 80 that is http://192.168.12.6 and not via http://192.168.2.6:8080 Posted at Nginx Forum: https://forum.nginx.org/r

Re: nginx reverser proxy tomcat with tomcat not working

2017-05-22 Thread Aleksandar Lazic
Hi AjaySawant. AjaySawant have written on Mon, 22 May 2017 08:32:13 -0400: > I am trying to proxy tomcat using nginx. I have this configuration > below. Now the problem I am facing is if I access the url by > IP(192.168.2.6) then it gets redirected to /auth_app is tomcat which > is perfectly fine

Re: nginx reverser proxy tomcat with tomcat not working

2017-05-22 Thread itpp2012
AjaySawant Wrote: --- > doesn't open as tomcat is running on 192.168.2.6 and not localhost. [...] > proxy_pass http://localhost:8080/auth_app/; Maybe you made a typo in your config. Posted at Nginx Forum: https://forum.

nginx reverser proxy tomcat with tomcat not working

2017-05-22 Thread AjaySawant
I am trying to proxy tomcat using nginx. I have this configuration below. Now the problem I am facing is if I access the url by IP(192.168.2.6) then it gets redirected to /auth_app is tomcat which is perfectly fine. The tomcat url redirect to a third party SAML2 provider and once it authenticated i