- Configure Vagrant box to forward guest port 80 to host port 8001
- Add vhost to your Apache:
<VirtualHost *:80>
ServerName projectname.local
ProxyPass / http://localhost:8001/
ProxyPassReverse / http://localhost:8001/
ProxyPreserveHost On
</VirtualHost>
- Enable vhosts in httpd.conf:
Include /private/etc/apache2/extra/httpd-vhosts.conf
- Restart Apache:
sudo apachectl -k restart
Useful info on setting up Vagrant env: http://jamesmcfadden.co.uk/using-vagrant-and-puppet-to-build-a-php-nginx-and-mysql-environment/