How to set up Virtual Hosts in Apache on Mac OSX 10.10 Yosemite


Setting up Virtual Hosts in Apache on Mac OSX 10.10 Yosemite is straight forward after you have your local Web Development environment up and running – get your web development up and running first including Apache, PHP and MySQL following this Get Apache, MySQL, PHP and phpMyAdmin working on OSX 10.10 Yosemite if required.

The process of setting up Virtual Hosts is done easier in the Terminal either using nano or vi with sudo or as root or you can use a GUI visual editor like Text Wrangler which allows access to the directory by clicking ‘Show Everything” in the open dialog box.