We’re experimenting with Vagrant virtual machines for development.
To use your host machine browser against a virtual machine web server, Vagrant must forward some host machine port to the server’s port.
So on your host machine, you may use
http://localhost:8001 for app1 and
http://localhost:8002 for app2.
This avoids port conflicts, but it’s a bit rough.
You can now use
http://app1.dev instead of
http://app2.dev instead of