I have a VPS server with CentOS with multiple domains (some I own, some I don't). I host my sites and my friends sites on it.
I have this structure:
/home/myfriendsusername/public_html/
/home/myotherfriendsusername/public_html/
/var/www/mydomain.com/public_html/
So all my stuff is in my /var/www and my friends have their own username in the home folder. Every VirtualHost is in the httpd.conf and it's getting kinda big (I have over 50+ domains including sometimes sub-domains.
Will it be better to create a file in the sites-enabled for each domain I host like:
/etc/apache2/sites-enabled/myfriendsdomain.com
/etc/apache2/sites-enabled/mydomain.com
Is that a good practice? or what I did (using httpd.conf) is correct?