When I first started writing this post, I considered giving it a title such as “How to set up local PHP development with dynamically configured mass virtual hosting on Apache 2.4”, “Quick and easy prototyping using Liip PHP, Dnsmasq or Proxy Auto Configuration” or even “The Ultimate Guide to Rapid Development on OSX 10.10”. I did not.
In my daily job as a Development Manager, I don’t get to code very much, but when I do, I want to have a setup that allows me to quickly create development projects and prototypes in the
~/Sites folder and have them show up as vhosts automagically, without having to edit any configuration file(s).
I also want to make sure my pseudo-toplevel domain
.dev resolves to localhost and any domains/subdomains i choose to create lead into the relevant web root folder.