You can find great articles about the theme in https://serversforhackers.com/, he is going to release a great book also!.
Sep 24, 2014
2
Level 11
Simple question about secure web server environment setup
I just deployed a digital ocean server and for now I've just chown'd everything in my laravel site's directory as www-data:www-data and it has whatever the default permissions were when I cloned from github.
I've never really set up a public web server environment before and was wondering if anyone knew what is the best practice for securing your web files on a LEMP stack. What permissions should various Laravel folders be? Who should be the owner etc?
Please or to participate in this conversation.