/ Published in: XML
A great way to work on website in Mac OS X is to set up a vhost. Doing so is very easy. In System Preferences click on Sharing and then make sure you have Personal Web Sharing turned on. Then, open or create your vhosts.conf file (/private/etc/httpd/users/vhosts.conf). Enter the VirtualHost information (see snippet below). The ServerName can be anything and the DocumentRoot should be the path to the folder where you want to build the website. Lastly, open the Terminal and enter the command below. It will restart Apache and will enable your new vhost.