You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ganesan malairaja <ss...@hotmail.com> on 2005/07/04 06:14:18 UTC

intergrating with apache

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 ?

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

thanks guys..

<html><DIV>
<DIV><FONT color=#3333cc face="Lucida Handwriting, Cursive"><EM><STRONG><IMG 
height=16 src="http://graphics.hotmail.com/emarrow_right.gif" 
width=16>Ganesan_Malairaja<IMG height=16 
src="http://graphics.hotmail.com/emarrow_left.gif" 
width=16></STRONG></EM></FONT></DIV></DIV></html>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: intergrating with apache

Posted by Alan Chandler <al...@chandlerfamily.org.uk>.
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)

http://apache.rmplc.co.uk/jakarta/tomcat-connectors/jk/binaries/

>
> 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/mod_jk.so

JkWorkersFile /etc/apache2/workers.properties
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 workers.properties file has

worker.list=tomcat
worker.tomcat.type=ajp13
worker.tomcat.host=appserv.home
worker.tomcat.port=8009

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"
               
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>

    <!-- 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" 
debug="0">

      <!-- 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"
                timestamp="true"/>

        <!-- 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" />
         </Context>

      </Host>

    </Engine>






-- 
Alan Chandler
http://www.chandlerfamily.org.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org