Hi,
I have installed XAMPP 1.5.1 on my Windows XP machine and I am having trouble setting up virtual hosts.
The following entries are in my HOSTS file:
-------------------------------------------------------
127.0.0.1 localhost
127.0.0.1 local.test.com
-------------------------------------------------------
I have added the following to the end of my httpd.conf:
--------------------------------------------------------
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:/DevApps/xampp/htdocs"
</VirtualHost>
<VirtualHost *:80>
ServerName local.test.com
DocumentRoot "C:/Dev/Web/www"
</VirtualHost>
--------------------------------------------------------
Restarted Apache. The first virtual host re-enables the XAMPP website and works however the second virtual host does not work and Apache reports
-------------------------------------------------------
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
-------------------------------------------------------
when I browse to local.test.com or http://local.test.com/index.htm
In the error.log file :
-------------------------------------------------------
Sun Jan 22 19:40:01 2006] [error] [client 127.0.0.1] client denied by server configuration: C:/Dev/Web/www/index.htm
-------------------------------------------------------
How do I get my "local.test.com" virtual host to work?
Thanks for your help,
John