Hi all, I'm pulling my hair out trying to get a simple virtualhost to work!
i can view my www directory by typing localhost, but I want to type 'devhost' which will take me to www/devhost
I've set up everything as per various instructions/tutorials and I'm having one issue. localhost works, but devhost just takes me back to localhost.
Looking in the apache error log I have this entry:
[Sun Jun 03 21:51:02 2012] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: [
devhost]
This is my hosts file:
127.0.0.1 localhost
127.0.0.1 devhost
and the additions to httpd.conf:
# Tells Apache to identify which site by name
NameVirtualHost *:80
# Tells Apache to serve the default WAMP Server page to "localhost"
<VirtualHost 127.0.0.1>
ServerName localhost
DocumentRoot "C:/wamp/www"
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerName devhost
DocumentRoot "C:/wamp/www/devhost"
<Directory "C:/wamp/www/devhost">
allow from all
order allow,deny
AllowOverride All
</Directory>
DirectoryIndex index.html index.php
</VirtualHost>