Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

rtprjct
30,548 PointsHow to set up a second Laravel Project
Hey guys I have edited my yaml file to include another project (without using tabs for spacing for the format). I read on another question the next step would be to edit the vhost file? Is this the http_vhost.h file? And what exactly do I change in it? After doing that I just run vagrant provision
in the command line?
sites:
- map: laravel.dev
to: /home/vagrant/Sites/laravel-basics/public
- map: gpl.dev
to: /home/vagrant/Sites/gpl/public
1 Answer

Chris Shaw
26,676 PointsHi artie91,
When adding to your YAML file your vagrant box first needs to be started so that the nginx services can be modified and restarted, once you have it started simply run vagrant provision
as you're correct about and you will see a bunch of stuff occur in your terminal/command prompt window.
Once it's provisioned you just need to add an entry for gpl.dev to your hosts file, see the below for the paths. You will need to edit the file as sudo on OS X or an administrator for Windows.
OS X
/etc/hosts
Windows
C:\Windows\System32\drivers\etc
See the below link if you're stuck on the hosts file.
http://www.rackspace.com/knowledge_center/article/how-do-i-modify-my-hosts-file