I am setting up a private web server to host some files and a simple web page for my personal usage. I copied an index file into a new index.php and added some pho to it as instructed by nginx documentation, but then deleted the old index.
At first it worked, until I deleted the old one. I thought it was irrelevant but I got the gateway error when trying to login to my localhost.
Where is there a new skeleton index that I can possibly copy over, or did I just need to set proper permissions on my '/var/www/html' directory?