Nginx now showing 403 on website

October 19, 2017 536 views
Nginx Ubuntu 16.04

After restarting the nginx service following this guide: https://www.digitalocean.com/community/questions/how-do-i-put-up-a-simple-static-website . my server is now showing forbidden on the homepage (only page made so far)

1 Answer

Hello,

One of the most common causes of the “403 Forbidden” error is not having a correctly set up index file.

If you have a static site you should add something like this to your server block:

index index.html index.htm index.php;

Hope that this helps!
Regards,
Bobby

Have another answer? Share your knowledge.