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.by AjaySawant - Nginx Mailing List - English
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;by AjaySawant - Nginx Mailing List - English
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 directory in my config.by AjaySawant - Nginx Mailing List - English
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; server_name _; location /app/ { proxy_redirect off;by AjaySawant - Nginx Mailing List - English
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 the application in wrong directory. My application is in /usr/share/nginx/html directory but the reverby AjaySawant - Nginx Mailing List - English
Thanks Francis. Worked like a charm.by AjaySawant - Nginx Mailing List - English
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) TLS SNI support enabled configure arguments: --prefix=/usr/share/nginx --sbin-path=/usr/sbin/ngiby AjaySawant - Nginx Mailing List - English
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:8080by AjaySawant - Nginx Mailing List - English
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 it redirected to http://localhost:8080/auth_app/ instead of http://192.168.2.6/auth_app/ and becauseby AjaySawant - Nginx Mailing List - English
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/index.php or http://192.168.44.163/testa/web/index.html 2. If someone request any file inside testby AjaySawant - Nginx Mailing List - English