I have the following in my Apache config:
<VirtualHost *:80> VirtualDocumentRoot /var/www/hosts/%0 ServerAlias *.test.galapagos.office </VirtualHost>
In /var/www/hosts, I have a directory called jason.test.galapagos.office and one called bill.test.galapagos.office. If I go to jason.test.galapagos.office in a browser, I get what I expect to see. Same with bill. In other words, everything is working perfectly.
However, I'm not quite satisfied with what's going on. Instead of /var/www/hosts/jason.test.galapagos.office and /var/www/hosts/bill.test.galapagos.office/, I'd like /home/jason/web and /home/bill/web.
How can I tell Apache to map to those subdirectories instead?