-
1. Re: Invalid command JkWorkersFile
jcordes Nov 2, 2003 8:46 AM (in response to rsrivast)Hi !
You're trying to configure mod_jk2 with configuration options for mod_jk. Create a config-file named workers2.properties in the apache/conf directory. A short example:
[logger]
level=DEBUG
[shm]
file=F:\Programme\Apache Group\Apache\logs\shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:node1]
port=11009
host=127.0.0.1
group=lb
lbfactor=1
tomcatId=node1
[channel.socket:node2]
port=12009
host=127.0.0.1
group=lb
lbfactor=1
tomcatId=node2
# define the worker
[ajp13:node1]
channel=channel.socket:node1
level=INFO
[ajp13:node2]
channel=channel.socket:node2
level=INFO
# Uri mapping
[uri:/myshop/*]
context=/myshop
worker=lb
[uri:/web-console/*]
context=/web-console
worker=lb
[uri:/jmx-console/*]
context=/jmx-console
worker=lb
[lb:lb]
debug=1
stickySession=1
# define the worker
[status:status]
# Uri mapping
[uri:/jkstatus/*]
worker=status:status
Documentation can be found at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/ under the section JK2.
HTH,
Jochen.