on my localhost I develop modules for a cms.
Hence I have a lot of urls like so:
cart.cfox.dev
blog.cfox.dev
orders.cfox.dev
which map to
/var/www/cfox/modules/cart
/var/www/cfox/modules/blog
/var/www/cfox/modules/orders
Each time I setup a new module I create a new virtual host.
but they are all the same with one word changed.
What I was wondering is if there is a way to have one virtual host deal with all of these.
The other one is my hosts file is full of
127.0.0.1 cart.cfox.dev
127.0.0.1 blog.cfox.dev
127.0.0.1 orders.cfox.dev
Can we do the same thing there?
I think the best way to handle these virtualhosts is a VirtualDocumentRoot. Specially with Apache 2.4 where, as I know, the DocumentRoot is not wrong anymore.
Unfortunately, no.