404 Nginx error - Ubuntu 14.04 Rails
I am following this tutorial with my own rails project: https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-passenger-and-nginx-on-ubuntu-14-04
And I keep arriving at a 404 Nginx not found error. Printing out the log I recieved this error: 2014/11/16 14:08:13 [error] 20149#0: *29 “/home/rails/whattodo/public/index.html” is not found (2: No such file or directory), client: 184.108.40.206, server: , request: “GET / HTTP/1.1”, host: “220.127.116.11”
2014/11/16 14:08:14 [error] 20149#0: *29 open() “/home/rails/whattodo/public/favicon.ico” failed (2: No such file or directory), client: 18.104.22.168, server: , request: “GET /favicon.ico HTTP/1.1”, host: “22.214.171.124”.
Here is my nginx file:
listen 80 defaultserver;
I added this file, even though I didn’t think it would be necessary, and still the error remains. Any help or directions you think I should be heading to solve this problem would be greatly appreciated!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×