Take, for instance, that I have www.blah.com, and I'm looking to setup a dev environment of our master branch @ dev.blah.com, and two environments for the two developers (myself and another) @ bdev.blah.com and @ kdev.blah.com. We're both working remotely via SSH. So, in summary:
www.blah.com - main website dev.blah.com - master branch of our dev environment (could be considered "staging") bdev.blah.com - my own checked in code, pre-staging kdev.blah.com - other dev's checked in code, pre-staging
Is it possible to just use .htaccess and VirtualHosts to accomplish this while meeting all necessary security issues?