I had modified the default root config of /etc/nginx/nginx.conf from
server {
...
#root /usr/share/nginx/html;
...
}
To
server {
...
root /var/www/default;
...
}
I created a folder and index.html
mkdir -p /var/www/default
chown -R nginx:nginx /var/www/default
chmod -R 755 /var/www/default
touch /var/www/default/index.html (I then added some content to this file)
chmod 644 /var/wwww/default/index.html
After restarting nginx I got a 403 error, this was due to SELinux. The fix
sudo setsebool -P httpd_can_network_connect on
getenforce
chcon -Rt httpd_sys_content_t /var/www/default/