Nginx error log

I have a linux instance on Digital Ocean, and I keep on getting the following nginx error log

2015/03/06 17:40:48 [error] 2117#0: *116 "/usr/share/nginx/www/index.html" is not found (2: No such file or directory), client: 50.186.40.95, server$

But my application lives at /home/nickeleres and doesnt require an entry point (Meteor, if that matters).

Ive been following this DigitalOcean guide but the author makes no reference to changing the following lines in /etc/nginx/sites-available/nickeleres

root /usr/share/nginx/html; # root is irrelevant
index index.html index.htm; # this is also irrelevant

which is where it appears nginx is getting the index.html directive from

This this an error within my nginx config, a coder error, or something else?

1 Answer

Try commenting out the lines marked as irrelevant by placing an # at the beginning of the line.

#root /usr/share/nginx/html; # root is irrelevant
#index index.html index.htm; # this is also irrelevant

Then reload nginx with:

sudo service reload nginx
6

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like