I am trying to set up virtual hosts on apache2 set up via WAMP. I have set the below code in the vhosts.conf file
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "C:/wamp/www/inspection/"
ServerName inspection
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
The trouble is when I go to inspection it takes me to the WAMP document root not the root of the inspection folder like specified in the DocumentRoot section above.
Where am I going wrong above. I also didn't know if it maybe something overriding it in the httpd.conf file. Any help is much appreciated.
EDIT: I uncommented the include line in httpd.conf which I hadn't seen to do before and now it points to the right place but if I attempt to use the submit button which takes me to http://inspection/confirm.php
. In IE it says Cannot display the page and Chrome says no data was transmitted. If I go back to no vhosts it works fine.