I'm setting up a server on Rackspace for migrating an existing website to so I can have everything working before changing the DNS entry.
I had no problems getting the server to work at the IP address using the default setup. I then copied the original sites-available file, symlinked to it in sites-enabled, and copied the original index.html
to a new folder. I set the sites-available root to the new folder and did chown -R www-data:www-data
, chmod 775
on the folder, and chmod 664
on the file. After which I restarted Nginx.
When I bring up the IP address of the site, I get 404 Not Found.
Here is sites-available:
server {
listen [::]:80 default_server;
root /var/www/example.com/public/;
index index.html index.htm;
server_name localhost;
location / {
try_files $uri $uri/ =404;
}
}