sudo nano /etc/apache2/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerName localwebsite.local
DocumentRoot "/Users/username/workspace/localwebsite"
ErrorLog "/private/var/log/apache2/localwebsite-error_log"
CustomLog "/private/var/log/apache2/localwebsite-access_log" common
<Directory "/Users/username/workspace/localwebsite">
Require all granted
Options Includes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
sudo nano /etc/hosts
127.0.0.1 localwebsite.local
sudo apachectl restart