You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Hans Schmid <ha...@mega-schmid.de> on 2001/05/18 16:59:46 UTC

[PATCH] Tomcat 3.3 m3 mod_jk-howto.html (new Bug #1809)

Hello,

I just installed Tomcat3.3-m3 with ajpv13 behind Apache 1.3.19 on Win2000.

While setting up mod_jk with ajp1.3, I noticed a bug in the
mod_jk-howto.html
It states:


Add the following block to your TOMCAT_HOME/conf/server.xml file.

<Connector className="org.apache.tomcat.service.PoolTcpConnector">
  <Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
  <Parameter name="port" value="8009"/>
</Connector>


but this is the way Tomcat 3.2.2 has to be setup.

In TC 3.3 the entry should be:

<RequestInterceptor
className="org.apache.tomcat.modules.server.Ajp13Interceptor"
 port="8009" />


and its enabled by default.

Anyway, I have attatched diffs against /src/doc/mod_jk-howto.html. This is
the new paragraph:

----------------------------------------------------------------------------
-------------------------------
(Optional) Configuring Tomcat to use the Ajpv13 protocol
mod_jk can use either the original Ajpv12 protocol or the newer Ajpv13
protocol. If you choose the latter, you need to activate the "Ajp13"
Connection Handler in Tomcat. This will give you the benefit of a faster
protocol and the ability to identify requests made via HTTPS.

Add the following block to your TOMCAT_HOME/conf/server.xml file.
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
  <Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
  <Parameter name="port" value="8009"/>
</Connector>

The server.xml file already has a block similar to this for Ajp12
connections on port 8007 (as delivered by mod_jserv). Even if you think
you're only using Ajp13, you probably don't want to delete this connector --
it's required to shut down Tomcat.
----------------------------------------------------------------------------
-------------------------------

There is a mod_jk-howto.html in proposals as well. I don't know, if this
patch should be applied to this one as well.

I hope this helps a little bit since there seems to be so much confusion in
the user-list about setting up mod_jk.

Best regards,

Hans