You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by HARI OM <ha...@hotmail.com> on 2004/01/02 18:14:57 UTC

[users@httpd] MOD_JK

I am using Apache 2.0.47 + Tomcat 4.1.27 on SuSE 8.0 and am working on MOD_JK connector.
I created MOD_JK.SO (from source) and placed under MODULES dir under apache.

I made changes to following files:

My SERVER.XML file is:
------------------------------------------------------------------------------------------------------------------------------------------------------
<Server port="8005" shutdown="SHUTDOWN" debug="0">
     <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
      modJk="/usr/local/apache2/modules/mod_jk.so" jkDebug="info"
      workersConfig="/usr/local/tomcat4/conf/jk/workers.properties"
      jkLog="/usr/local/tomcat4/logs/mod_jk.log"/>

<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" debug="0"/>
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" debug="0"/>

 <Service name="Tomcat-Standalone">

<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="8080" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="100" debug="0" connectionTimeout="20000"
               useURIValidationHack="false" disableUploadTimeout="true" />

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0"/>

<Engine name="Standalone" defaultHost="localhost" debug="0">
 <Host name="my.domain.name" debug="0" appBase="webapps" unpackWARs="true"    
   autoDeploy="true">
       <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true"  />

 <Context path="/examples" docBase="examples" debug="0" reloadable="true" crossContext="true">
          <Logger className="org.apache.catalina.logger.FileLogger"
                     prefix="localhost_examples_log." suffix=".txt" timestamp="true"/>
------------------------------------------------------------------------------------------------------------------------------------------------------

My HTTPD.CONF file shows:
------------------------------------------------------------------------------------------------------------------------------------------------------
ServerName my.domain.name:80
LoadModule jk_module modules/mod_jk.so
Include /usr/local/tomcat4/conf/auto/mod_jk.conf

 JkWorkersFile "/usr/local/tomcat4/conf/jk/workers.properties"
 JkLogFile "/usr/local/apache2/logs/mod_jk.log"
 JkLogLevel debug
 JkMount /examples ajp13
 JkMount /examples/* ajp13
 JkMount /jk ajp13
 JkMount /jk/* ajp13
 JkMount /cocoon ajp13
 JkMount /cocoon/* ajp13
------------------------------------------------------------------------------------------------------------------------------------------------------

My auto-generated MOD_JK.CONF file is:
------------------------------------------------------------------------------------------------------------------------------------------------------
########## Auto generated on Wed Dec 31 09:56:01 MST 2003##########
<IfModule !mod_jk.c>
  LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
</IfModule>

JkWorkersFile "/usr/local/tomcat4/conf/jk/workers.properties"
JkLogFile "/usr/local/tomcat4/logs/mod_jk.log"
JkLogLevel info

<VirtualHost my.domain.name>
    ServerName my.domain.name
    JkMount /admin ajp13
    JkMount /admin/* ajp13
    JkMount /webdav ajp13
    JkMount /webdav/* ajp13
    JkMount /examples ajp13
    JkMount /examples/* ajp13
    JkMount /manager ajp13
    JkMount /manager/* ajp13
</VirtualHost>
------------------------------------------------------------------------------------------------------------------------------------------------------

My TOMCAT LOG file shows following:
------------------------------------------------------------------------------------------------------------------------------------------------------
Dec 31, 2003 9:56:35 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
Dec 31, 2003 9:56:35 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Dec 31, 2003 9:56:37 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
------------------------------------------------------------------------------------------------------------------------------------------------------

Can anyone please HELP me out.....? would appreciate that

HARI OM

I live in a very small house...
but my windows open to a big world...