I'm currently trying to configure Apache vhost configuration and was hoping to be able to use mod_vhost_alias for everything.
Instead of setting up a configuration for each website I wanted to make it dynamic.
So far I have:
Which works fairly well, but I would like to be able to allow sub-domains so i tried the following:
But I don't want the DocumentRoot to be /home/example.com/www/www
Is there a way to achieve this? If not, would my best option to use mod_rewrite for subdomains?