Set up a small webserver using XAMPP.
I'm now trying to get used to using V-HOSTING.
= My document root is set to C:/WebServer/xampp/htdocs
= I have edited my hosts file so that www.test1.com and www.test2.com are directed to 127.0.0.1 (localhost).
= htdocs contains 2 folders test1 and test2
This is how I currently have my vhost entry set up...
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.test1.com
DocumentRoot /test1
</VirtualHost>
<VirtualHost *:80>
ServerName www.test2.com
DocumentRoot /test2
</VirtualHost>
However I keep on getting "You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. "
I assume the vhost entries are correct?
I guess firstly I want to make sure I have my document root part in the vhost entry correct.
If my apache document root = C:/WebServer/xampp/htdocs then the vhost entry just needs the sub directories of that right?