I am trying to configure vhosts for my local development machine, I did it before, but somehow, I am having problems now.
I am trying to have 2 vhosts
http://tickle -> D:\Projects\LearnZendTest\public
http://localhost -> D:\Websites
My vhosts config looks like
<VirtualHost *:80>
DocumentRoot "D:/Projects/LearnZendTest/public"
ServerName learnzendtest
<Directory "D:/Projects/LearnZendTest/public">
AllowOverride All
Options All
Order allow,deny
Allow from 127.0.0.1
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:/Websites"
ServerName localhost
<Directory "D:/Websites">
AllowOverride All
Options All
Order allow,deny
Allow from 127.0.0.1
</Directory>
</VirtualHost>
I notice apache only takes into consideration the 1st entry. If I have the entry for localhost 1st, even when I goto http://tickle, I will get to D:\Websites
. How can I fix this?