tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Chandler <>
Subject Re: intergrating with apache
Date Mon, 04 Jul 2005 06:14:22 GMT
On Monday 04 July 2005 05:14, ganesan malairaja wrote:
> i have setup tomcat 4.1.31 with j2sdk 1.4.2_08 ..
> now i need to know  how to integrate apache with tomcat .. as i came across
> examples for tomcat 3.x.x
> i am not sure the same procedures can be applied....
> i am using linux enviroment .. i am planning to intergrate tomcat with
> apache 2.0.x..
> what connector i need to use ..  mod_jk ?

I have just set up this from debian - standard debian (sarge) apache2 and 
tomcat4.  mod_jk not supported in debian so downloaded the binary version 
from here (Seems to be a uk mirror - not sure why I got to this address)

> any urls with example will help alot and ur coments is also welcomed

Then in apache2 config I am doing

LoadModule jk_module /usr/lib/apache2/modules/

JkWorkersFile /etc/apache2/
JkLogFile     /var/log/apache2/mod_jk.log
JkLogLevel    info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

inside my <virtualhost> directive

JkMount /*.jsp tomcat
JkMount /servlet/* tomcat

and the file has


then in tomcats server.xml

   <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="8009" minProcessors="5" maxProcessors="75"
               enableLookups="true" acceptCount="10" debug="0"
               connectionTimeout="20000" useURIValidationHack="false"

    <!-- An Engine represents the entry point (within Catalina) that processes
         every request.  The Engine implementation for Tomcat stand alone
         analyzes the HTTP headers included with the request, and passes them
         on to the appropriate Host (virtual host). -->

    <!-- Define the top level container in our container hierarchy -->
    <Engine jvmRoute="tomcat" name="Standalone" defaultHost="appserv.home" 

      <!-- Global logger unless overridden at lower levels -->
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_" suffix=".log" timestamp="true"/>

      <!-- Because this Realm is here, an instance will be shared globally -->
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             debug="0" resourceName="UserDatabase"/>

      <!-- Define the default virtual host -->
      <Host name="appserv.home" debug="0" appBase="webapps"
            unpackWARs="true" autoDeploy="true">

        <!-- Logger shared by all Contexts related to this virtual host. -->
        <Logger className="org.apache.catalina.logger.FileLogger"
                directory="logs" prefix="appserv_" suffix=".log"

        <!-- Allow symlinks for the tomcat-docs webapp. This is required in
             the Debian packages to make the Servlet/JSP API docs work. -->
         <Context path="/tomcat-docs" docBase="tomcat-docs" debug="0">
            <Resources className="org.apache.naming.resources.FileDirContext"
                       allowLinking="true" />



Alan Chandler

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message