You will need to remove the default directory restrictions that are set in the
httpd.conf file on a directory by directory basis using the
<Directory> directive within your VirtualHost containers.
In your example it might look like this:
- Code: Select all
#VirtualHost
NameVirtualHost *:80
<VirtualHost *:80>
ServerName terrapinnation.info
ServerAlias www.terrapinnation.info
DocumentRoot "C:/xammp/htdocs/terra"
<Directory "C:/xampp/htdocs/terra">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
As you can see I have added a few things that might help but you do not have to use them, other than the
<Directory> directive of course.
I also swapped the
ServerAlias as the domain name is usually the main domain and the
www. is as a subdomain of the main domain.
Clue - this is also how to add more subdomains to a VirtualHost container like
subdomain1.terrapinnation.info etc. etc.
BTW, I prefer to use the full directory path so if yours is different it would need to be altered of course.
More reading on the directives used can be found here.
http://httpd.apache.org/docs/2.3/mod/core.html
http://httpd.apache.org/docs/2.3/mod/di ... -dict.html
http://httpd.apache.org/docs/2.2/mod/directives.html
Just to add if you have any issues with the syntax of your
httpd-vhosts.conf file and want to check it, then at a command prompt inside the
xampp\apache\bin directory, issue this command:
apache -S
It will provide some useful clues.
===========================================
Take a look at the new
DeskTopXampp launch control for
XAMPP
and
XAMPPlite (DTX.exe) posted by
ridgewood:
http://community.apachefriends.org/f/viewtopi ... 967#103967
Available at Ridgewood's
new DTX web site
http://zedfiles.com/DTX/
Also available here:
http://nat32.com/dtx/
I highly recommend DTX.
============================================