I'm turning my VPS into a development server which will hold development copies of all my websites, controlled by git. Of course, I installed the LAMP server so I can test them.
I've already configured Apache to server through port 8080. However I'm trying to get it to be much more secure. The idea is to only allow certain people to view the content (based on IP or password I guess). Is there a way I can do this?
Another thing I was trying to figure out is what to chown
and chgrp
all the files in /var/www
to. By default (at least in my case) everything is owner by root -- which is bad news. What's the best practise here?