I have looked at setting up an Apache server.
I want to run our site example.com
on the server, as well as testing test.example.com
.
This I can setup by having two almost identical VirtualHost in the configure file in sites-available
.
What I then want is a development subdomain, but these need to be unique per developer, e.g. mol.test.example.com
. Is there a smart way to set this up?
I have setup the production to take data from /var/www/live/
, the test to take data from /var/www/test/
and would like the development to take data from e.g. /var/www/dev/mol/
, where mol
is the first part of the URL. (the sub-subdomain for test
)