Lets say I have this folder structure on disk:
/var/www/site1.domain.com /var/www/site2.domain.com /var/www/site3.domain.com /var/www/site4.domain.com /var/www/site5.anotherdomain.com /var/www/site6.anotherdomain.com /var/www/site7.anotherdomain.com /var/www/site8.anotherdomain.com These are all similar plain html/css/js websites configured in exactly the same way.
Is it possible to set up apache in such a way that incoming requests for each domain are directed to the appropriate directory without configuring hundreds of <VirtualHost..> nodes? I guess I could auto generate them, but I'm hoping for a fancy go look in the request's domain's folder kind of configuration..
Is this possible? Even if it is possible, are there any concerns with this security or otherwise?
If it is not possible, is there another web technology like nginx for example that can do this?