Question

Nginx now showing 403 on website

Posted October 19, 2017 584 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)

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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

Submit an Answer