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.
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:
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?
Question
game_over
Link to comment
Share on other sites
5 answers to this question
Recommended Posts