I would like to have two virtual hosts (2 projects) on single machine, and would like to have configuration that is independent of domain name this machine/IP is assigned to
For example I have
- Domain name
testDomainName.com
and expecting it to be deployed toexample.com
orwhatever.com
, - 2 projects
project1
andproject2
.
I'd like to configure project1.testDomainName.com
and project2.testDomainName.com
, and don't care if it'll change in the future to example.com
or whatever.com
.
In other words, how can I assign "project1" and "project2" as names, and have the apache automatically cocatenate/interpret it as project1.whatever.com
, and project2.whatever.com