VIRTUALHOSTS SCRIPT FOR UBUNTU
UPDATE: Patrick just has opened a Google Code repository which makes it easier for us to track changes and bugs, so feel free to download the appropriate script from this location: http://code.google.com/p/virtualhost-sh/downloads/list
I recently changed my Macbook from OS X to running Ubuntu as its main operating system. By doing this I also had to replace some useful utilities which ran fine on OS X, but not on Ubuntu. One of those nice utilities is a script by Patrick Gibson which makes it easy to create VirtualHosts for your local (although you could probably use it for non-local installations as well, I’ve never done so yet) Apache2 installation. I changed this script to be used on Ubuntu. In general this meant, replacing some OS X style of doing things with the Linux or more specifically the Ubuntu way of doing things. It will probably run fine on Debian as well, but I have only tested it on Ubuntu 7.10 Gutsy Gibbon. If you can confirm this script to work on other distributions, feel free to leave a comment. Thanks to Patrick Gibson for an awesome, well-documented script!
Download the script Use the Google Code repository instead
ps: For information about how to install or use the script have a look at comments in the script or check out Patrick’s guide
