Tomcat Readme file wrote:Add-on Tomcat 6.0.20 (for Apache 2.2.11 >= XAMPP 1.7.2-dev3.1 )
First, return your httpd.conf file back to the default installation file of XAMPP.
Make sure that your other instance of Apache is never run at the same time as XAMPP.
Your Tomcat configuration is taken care of in the C:\xampp\tomcat\conf\auto\mod_jk.conf folder so the entry in your httpd-vhost.conf file is not required and BTW the paths specified for Tomcat is relative to the C:\xampp\tomcat\webapps folder as defined in the C:\xampp\tomcat\conf\server.xml file
You also have some other problems with your vhosts and when there are errors the default vhost - localhost in your vhosts file - is always returned.server.xml wrote: <!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
So having said all that and assuming you have put back XAMPP to it's default installation state then perhaps your vhosts file may look something like this:
- Code: Select all
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/temp/5"
ServerName dummy-host.localhost
<Directory "C:/temp/5">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/temp/8"
ServerName dummy-host2.localhost
<Directory "C:/temp/8">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
- Code: Select all
127.0.0.1 dummy-host.localhost
127.0.0.1 dummy-host2.localhost