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;

Re: Nginx 404 while accessing app

2017-06-27 Thread Zhang Chao
Hello! I copied your configuration, it seems a internal redirection cycled, you need to modify it(e.g. change the location / to location /=). After i modified, i didn’t reproduce your problem, the root directive works well. On 27 June 2017 at 22:36:45, AjaySawant (nginx-fo...@forum.nginx.org) wr

Re: Nginx 404 while accessing app

2017-06-27 Thread Zhang Chao
Hello! I copied your configuration, it seems a internal redirection cycled, you need to modify it(e.g. change the location / to location /=). After i modified, i didn’t reproduce your problem, the root directive works well. On 27 June 2017 at 22:36:45, AjaySawant (nginx-fo...@forum.nginx.org) wr

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