Forum Moderators: phranque
LoadModule jk_module modules/mod_jk.so
JkWorkersFile "C:/Apache2/conf/workers2.properties"
I created the workers2.properties file:
[logger.apache2]
file=”C:\Apache2\logs\error.log”
level=INFO
debug=1
[config]
file=C:/Apache2/conf/workers2.properties
debug=0
[shm]
file=C:\Apache2\conf\jk2.shm
size=1000000
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
tomcatId=localhost:8009
[ajp13:localhost:8009]
channel=channel.socket:myTomcat
[status:status]
[uri:/jsp-examples/*]
info=mapping the jsp-examples context of Tomcat
[uri:/tomcat-docs/*]
info=mapping the docs of Tomcat
Thanks if you can help me
Jesus
I am running
Apache 2
Tomcat 5.5
LoadModule jk2_module modules/mod_jk2.dll
Placed the workers2.properties on \Apache2\conf directory, here is it:
#define the shared memory file
[shm]
file=c:/Apache2/logs/jk2.shm
size=1048576
# Define the communication channel
[channel.socket:localhost:8009]
tomcatId=localhost:8009
port=8009
host=127.0.0.1
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[uri:/servlets-examples/*]
worker=ajp13:localhost:8009
[uri:/jsp-examples/*]
worker=ajp13:localhost:8009
[uri:/servlets-examples]
worker=ajp13:localhost:8009
[uri:/jsp-examples]
worker=ajp13:localhost:8009
[uri:/servlets-examples/servlet/*]
info=Prefix mapping
[uri:/jsp-examples/*.jsp]
info=Extension mapping
[uri:/tomcat-docs/*]
worker=ajp13:localhost:8009
[uri:/manager/html/*]
worker=ajp13:localhost:8009
[uri:/admin/*]
worker=ajp13:localhost:8009
[uri:/balancer/*]
worker=ajp13:localhost:8009
[status:]
info=Status worker, displays runtime information
channel=channel.socket:localhost:8009
[uri:/status/*]
worker=status:localhost:8009
group=status:
Finally I placed the jk2.properties file in \Tomcat5\conf directory, here is it:
#Shared memory directive
shm.file=c:/Apache2/logs/jk2.shm
channelJni.disabled = 0
channelSocket.port=8009
I hope this can help you, that was the only way that i found to get it work, there's not much info about it, and the available is old.
Jesus