Virtual Hosts Not Working on OSX Mavericks
Solution 1:
It looks like you have nearly everything correct. I'm running Mavericks with a couple dozen virtual hosts, so this should work for you.
First, and this might be all you need to do to fix things, you need to enclose your DocumentRoot in quotes. So,
DocumentRoot /Users/gdboling/Sites/rocket-gen
becomes
DocumentRoot "/Users/gdboling/Sites/rocket-gen"
Next, add the following to your /etc/hosts
file, on the line immediately following what you already have. Your hosts
file should be:
You have this part:
127.0.0.1 local.rocket-gen.com
Now add this right below:
::1 local.rocket-gen.com
I have each of my vhosts set in hosts
this way.