Site delivery via web server conf or php include
My current setup includes a number of sites that pull content from a database based on the fully qualified domain name. All fqdns are defined in the web server config and point to the docroot of the relevant CMS.To add a new site, I need to add a few lines to mysql tables (fqdn, client login details, root node for the CMS, etc) which is done automatically when the user signs up.
I also need to add the fqdn to the relevant virtualhost directive.
I'm now planning one of two things:
1. automate the update of the virtualhost directive by rewriting a configuration file that is included in the main httpd.conf and the restarting the apache server.
2. wrapping all the CMS engines into one, and having all unknown fqdns (default web site) pointing to this doc root. The correct CMS would then be included by the main index.php.
I'm wondering whether there would be any difference in serverload by having all sites handled by the same virtual host. I can't see a reason it should make a difference, but was wondering if anyone has any thoughts on, or experience of this.
If I haven't made the above clear, please let me know and I'll try and be a bit more concise :-)
Cheers
Ben