Question

Nginx now showing 403 on website

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)


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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