I only have a fuzzy idea of the correct terminology to use in this question so please feel free to help me by clarifying it.
I have a vhost setup. The idea is that I want a wildcard to route all requests for
root.TERM.lh to a
/TERM/ document root.
The setup below recognises the domains fine and routes them accordingly, but it doesn't translate the %1 in the document root to TERM. For eg the Apache error log tells me that for a request to root.mywebsite.lh it's attempting to route to
/Users/hollsk/Dev/websites/%1, so it's interpreting it as a literal string.
Is my syntax incorrect, or am I missing some module?
NameVirtualHost * <VirtualHost *> ServerName root.%1.lh ServerAlias root.%1.lh DocumentRoot /Users/hollsk/Dev/websites/%1/ </VirtualHost>