Report this

What is the reason for this report?

Error 403 Forbidden

Posted on October 16, 2017

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!



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!

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.

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!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.