I have a windows XP machine, installed apache at C:\Program Files\Apache Software Foundation\Apache2.2
I set the document root as DocumentRoot "C:/projects" in httpd.conf and my projects are proj1 and proj2 in c:\projects
<VirtualHost *:80>
DocumentRoot "C:/projects/proj1"
ServerName proj1
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/projects/proj2"
ServerName proj2
</VirtualHost>
both proj1 and proj2 have index.php files. I added
127.0.0.1 proj1
127.0.0.1 proj2
in the hosts file too.
still, when I type http://proj1, I only see the files listing, the virtual directory isn't working. what am I missing?