Error about Uploading web files

I upload my .html files to the directory /home/user-data/www/default after deleting the file at the /home/user-data/www/default,and wait for a while,but only “403 Forbidden nginx” appear in my website,hoping your help,thanks.

Make sure the main html file is called index.html and also make sure the permissions on those files are still the way they should be:

chown -R user-data:root /home/user-data/www/default
chmod -R u=rw,g=r,o=r /home/user-data/www/default
1 Like

Thank you!Thanks for your help:blush:

1 Like