Hi, i think i'm a little confused with VirtualHosts on CentOS using Vagrant. For those that don't know Vagrant is just a wrapper for a virtual machine (Virtual Box) i'm using CentOS 6.5 within Virtualbox which has a local IP.
My server DocumentRoot in httpd.conf is set to /home and then i've created sites like /home/username/public_html/ so that it's an exact copy of my production server.
I then setup a localhost in the /etc/hosts file:
All is working great, however, I'm working on a larger project that would benefit from having it's own VirtualHost so i can access it from http://username.local
so off i went into my httpd.conf
and added a new virtual host:
CustomLog /home/username/public_html/requests.log common
and then back into /etc/hosts i added the new alias:
But now both domains username.local and dev.local are going straight to the new folder /home/username/public_html .. so basically dev.local is being overwritten.. any ideas where i am going wrong?