There are two sets of configuration that need to be done to get this
working.
Apache Configuration
====================
The following needs to be added to the httpd.conf for Apache: (assuming the
dll has been put into the modules directory)
LoadModule jk2_module modules/mod_jk2.dll
Also, in the same directory you need a workers2.properties file. Below is
an example.
--- below this line
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[uri:/examples/*]
worker=ajp13:localhost:8009
-- above this line
Tomcat Configuration
====================
<tomcat_home>/conf/server.xml
In the server.xml file make sure that you have the following connector
uncommented. (Or add this is you need if there isn't one!)
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
acceptCount="10" bufferSize="2048" connectionTimeout="20000" debug="0"
enableLookups="true" maxProcessors="75" minProcessors="5" port="8009"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
proxyPort="0" redirectPort="8443" scheme="http" secure="false"
tcpNoDelay="true" useURIValidationHack="false">
<Factory
className="org.apache.catalina.net.DefaultServerSocketFactory"/>
</Connector>
<tomcat_home>/conf/jk2.properties
My jk2.properties doesn't contain anyting at all (everything is commented
out) so the defaults are used (e.g. port 8009).
Using the above you should be able to get to the examples bundled with
tomcat, assuming that you could get to the examples using http on port 8080.
Hope this helps
Malcolm
-----Original Message-----
From: Kaustuv Sharma [mailto:[EMAIL PROTECTED]]
Sent: 23 November 2002 05:49
To: Tomcat Users List
Subject: How to configure Apache2.0.43 and Tomcat4.1.12 on Win2k
Hi,
I am new to Apache and I am trying to configure Apache2.0.43 and
Tomcat4.1.12 on win2k. I have downloaded mod_jk2.dll, but i am not being
able to run my jsp application. I am not being able to configure the
connector. I tried the docs in the jakarta site, but it has not been much
help. I also search trhough the archives but there too I didn't get much
help.
If anyone can please direct me to some good docs or if somebody can help me
out, it will be a great help.
Regards,
Kaustuv
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>