i looking at trying to make my web server easier to manage, backup and replicate. I have websites, config files, ssl certs, vhosts scattered all over the place. It seems logical that they should all be in one place. i was thinking of creating a directory in root like so
/data
and inside this have all the directories for my data on this webserver like so:
/data
/websites [websites directories]
/ssl_certs [secure certificates for sites]
/vhosts [virtual host files for sites]
/config [Software config files (apache, mod_security etc.)
/apache2 [Apache Server Config files]
/proftpd [FTP Server Config files]
/utilities [Misc Bash Scripts]
this would mean if i had to replicate this server, i could install and config the required packages and then copy this folder across which will contain all of my data. Also i could backup everything on my server easily and quickly so in the event of needing to restore i would have all my data in one place.
so i have 3 questions:
is this a good idea or would it be more hassle than its worth?
would there be any security implications of doing things this way?
what is the standard way of doing this if the above is not feasible?