This script allows you to easily create virtual hosts for a development environment on Mac OS X with the built-in Apache server so that you can reflect a production environment locally.
The master branch of this project should work fine for Mac OS X 10.6 (Snow Leopard) - 10.8 (Mountain Lion). 10.5 (Leopard) also worked fine at some point.
There are separate branches for the Mac OS X 10.4 and below and Ubuntu Linux. The Tiger and below version of the script uses Net Info Manager to handle the host creation and resolution. Leopard eliminated Net Info Manager, so it uses /etc/hosts instead. Bjorn Wijers adapted the script for Ubuntu Linux. (See the old Google Code project for older versions.)