This is a much better approach than using Vagrant Hostmanager because you don’t have to worry about polluting your /etc/hosts files on the host or the guest machines. Both the host and the guest machine just treat the guest machine like it’s ‘your-hostname.dev’.
- 
Install pow
brew install pow
 - 
Create the port proxy (pow.cx/manual.html#section_2.1.4)
echo http://127.0.0.1:3333 > ~/.pow/your-hostname
 - 
Add the following to your Vagrantfile
config.vm.network :forwarded_port, guest: 80, host: 3333 config.vm.hostname = "your-hostname.dev"
 - 
Create your apache configuration