I have multiple development branches of my app, which I would like to be able to deploy on my testing server and switch between easily.
I was wondering about configuring some sort of dynamic virtual host so that on the web server I have:
/myApp/branch1
/myApp/branch2
/myApp/branch3
Which I can access via:
http://myapp.example.com/1/
http://myapp.example.com/2/
http://myapp.example.com/3/
The idea being that I can upload new branches and the virtual host will know how to serve those.
How can I do this?
Disclaimer: My knowledge of virtual hosts is limited; I would appreciate clear and simple instructions that I can learn from.