index.html doesn't go to Tomcat, so you would need to set the DocumentRoot
in httpd.conf for Apache to find that file.

Can you add your second host, start Tomcat, and then post the resulting
mod_jk.conf file?  That would give us an idea of what Apache is being told.

John
 

-----Original Message-----
From: Adrian Damn it!
To: [EMAIL PROTECTED]
Sent: 1/6/03 6:00 PM
Subject: Virtual Host + Tomcat + Apache

Having trouble with the vhosts with mod_jk.
I can`t seem to get http://stafford.com/index.html to show up unless I
set the DocumentRoot in the VirtualHost directive to 
/usr/local/tomcat/webapps/stafford.
But when I add an additional Virtual host it pulls the same
DocumentRoot.



  <Host name="stafford.com" debug="0" appBase="webapps"
unpackWARs="true">
         <Logger className="org.apache.catalina.logger.FileLogger"
           directory="logs" prefix="stafford." suffix=".log" 
timestamp="true"/>
         <Context path="" docBase="stafford" debug="0"
reloadable="true"/>
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" 
append="true"
forwardAll="false" modJk="/usr/local/apache/libexec/mod_jk.so"
workersConfig="/usr/local/tomcat/conf/jk/workers.properties" />


</Host>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to