Created a folder /data/www as stated in the instructions for off. site. In it put the index.html file. Then I opened the configuration file and added the following to the end of the http block (which was already there):
server { location / { root /data/www/; } location /images/ { root /data/; } } Next, reboot the nginx daemon like this: sudo nginx -s reload .
After all this, I go to http: //localhost/index.html . I see 404 in response. What am I doing wrong?
Ubuntu system 16.04.