Re: Nginx redirect quey string to url

2017-06-29 Thread AjaySawant
Thanks Richard for replying but somehow this is not working. I see it is being redirected to http://www.example.com/fhu but not to http://www.example.com/fhu/foo and http://www.example.com/fhu/bar. As you mentioned I have matched the case exactly. Posted at Nginx Forum: https://forum.nginx.org/re

Nginx redirect quey string to url

2017-06-29 Thread AjaySawant
I am trying to redirect a query string to url and I am using like this but it is somehow not working. Can somebody help? rewrite ^/abc/xyz/def.php?Id=13 http://www.example.com/fhu/foo permanent; rewrite ^/abc/xyz/def.php?Id=14 http://www.example.com/fhu/bar permanent; Posted at Nginx Forum: http

Re: Nginx 404 while accessing app

2017-06-27 Thread AjaySawant
Hey, I also would like to mention you that it works if I create a symbolic link of html folder inside /etc/nginx directory which points to /usr/share/nginx/html directory. The only concern is why is it picking up from /etc/nginx/html directory even though I did not mention anything about that direc

Re: Nginx 404 while accessing app

2017-06-27 Thread AjaySawant
Thanks Toker for replying. I implemented your suggestion as given below but it is not working. I am getting same error as earlier. I am not able to understand why nginx is taking the docroot as /etc/nginx/html instead of /usr/share/nginx/html. server { listen 80 default_server;

Nginx 404 while accessing app

2017-06-27 Thread AjaySawant
I have one AngularJS application deployed on port 8080. It can be access as http://ip:8080. Now I have deployed the application on nginx and I am trying to access this application via nginx reverse proxy configuration but I am getting 404 error in nginx log as it looks like the nginx is searching t

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

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

Rewrite directory lookup to another directory

2014-08-23 Thread AjaySawant
Hello All, I am trying to add a rewrite rule to my nginx configuration. But each time it is giving me 404/302 error. My scenarios is given below 1. If someone request URL http://192.168.44.163/testa or http://192.168.44.163/testa/ then it should be redirected to http://192.168.44.163/testa/web/in