This is what I find weird.
it does. this is what is i my vhosts file:
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
ServerName lc.test.com
DocumentRoot "C:\test"
CustomLog logs\lc.test.com.access.log combined
ErrorLog logs\lc.test.com.error.log
</VirtualHost>
<VirtualHost 127.0.0.1:80>
ServerName lc.informativesolutions.com
DocumentRoot "C:\operator1\on-infosol\primary"
CustomLog logs\lc.informativesolutions.com.access.log combined
ErrorLog logs\lc.informativesolutions.com.error.log
</VirtualHost>
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
ServerName lc.aivdesign.com
DocumentRoot "C:\operator1\on-aivdesign\primary"
CustomLog logs\lc.aivdesign.com.access.log combined
ErrorLog logs\lc.aivdesign.com.error.log
</VirtualHost>
<VirtualHost 127.0.0.1:80>
ServerName lc.onmedias.com
DocumentRoot "C:\operator1\on-onmedias\primary"
CustomLog logs\lc.onmedias.com.access.log combined
ErrorLog logs\lc.onmedias.com.error.log
</VirtualHost>
<Directory C:\operator1>
Order Deny,Allow
Allow from all
</Directory>
I have html files in all my site directories except test, so when I go to lc.onmedias.com, or lc.aivdesign.com, it shows those website files..... but if I rename index.html to index.php and go to that site(lc.onmedias.com), the browser shows the php test output from the file in C:\test which is also index.php when it should be taking index.php from C:\operator1\on-onmedias\primary, as it does correctly take index.html from that virtual host directory. Am I making more sense now? I have succesfully setup multiple virtualhosts which display correct files in the corresponding vhost directory, until I try and call a .php file it goes back to c:\test.
For instance. http://lc.informativesolutions.com/ displays the html website(index.html in C:\operator1\on-infosol\primary) but when I rename it to index.php or type in http://lc.informativesolutions.com/index.php, it displays the php script c:\test\index.php.