FedeCuci
By:
FedeCuci

Error 403 Forbidden

October 16, 2017 214 views
Nginx DigitalOcean Logging Ubuntu 16.04

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!

1 Answer

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!

Have another answer? Share your knowledge.