OS X Virtual Host setup script Aug 17 2004
Enter virtualhost.sh — the most powerful and easy shell script for Mac OS X that sets up a virtualhost into your system. Using NetInfoManager, virtualhost.sh lets you easily create a named virtual host that is only accessible locally.
So, just as I was thinking, man, it really shouldn’t be that hard to script adding a virtual host entry into Apache’s httpd.conf file, a simple Google search reveals that, of course, someone has already written the script, and it is very good. 🙂