Skip to content
pgib edited this page Nov 30, 2010 · 11 revisions

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 trunk of this project is for the current version of Mac OS X, which at this time is 10.6 (Snow Leopard). 10.5 (Leopard) also works fine.

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.

The original page for virtualhost.sh is http://patrickgibson.com/utilities/virtualhost, and you may find the discussion via the comments useful.

Clone this wiki locally