Question

Error 403 Forbidden

I am running this website: http://spalaxys.online and unexpectedly it just prints “Error 403 Forbidden”. Therefore I looked into my log file and this is what’s written: 2017/10/16 07:09:48 [error] 25750#25750: *159 directory index of “/home/fede/apps/spalaxys/public/” is forbidden, client: 165.227.67.242, server: , request: “HEAD / HTTP/1.0”

Does anyone know how to solve this? Any help would be greatly appreciated!


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.

Your website looks fine now, but keep in mind, /home/fede/apps/spalaxys/public/ is your webserver root directory and should have the permission AND the ownership of www-data:www-data. This can be done by the following command:

chown -R www-data:www-data /home/fede/apps/spalaxys/public/

Apparently something has modified that directory that you need to investigate!