I am trying to set up virtual servers within apache. I want it to be name based. I've read the apache docs and read the other posts on this issue within this site, but still no workie... Here is what I have done: within the httpd.conf file I added the following;
NameVirtualHost 192.168.0.15
<VirtualHost 192.168.0.15>
ServerName
www.test.com
ServerAlias test.com *.test.com
DocumentRoot /home/apache/www/test
</VirtualHost>
<VirtualHost 192.168.0.15>
ServerName
www.test2.com
ServerAlias test2.com *.test2.com
DocumentRoot /home/apache/www/test2
</VirtualHost>
I added
www.test.com and
www.test2.com to my host file on my windows machine to reslove to 192.168.0.15. When I attempt to connect to either test.com or test2.com I get;
Forbidden
You don't have permission to access / on this server.
--------------------------------------------------------------------------------
Apache/2.0.43 Server at
www.test2.com (same thing for test.com)Port 80
I've tried several other things but am starting to confuse myself...
Any help and suggestions would be appreciated.