- 论坛徽章:
- 0
|
http.conf
……………………
LoadModule jk_module modules/mod_jk.so
Include conf/mod_jk.conf
……………………
mod_jk.conf
# Where to put jk logs
JkLogFile logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"
#use ajp13 to send
JkMount /*.jsp controller
JkMount /*.do controller
workers.properties
#workers.properties
#server list
worker.list=controller,tomcat1,tomcat2
#==========tomcat1==================
worker.tomcat1.port=8009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=1
#
#==========tomcat2==================
worker.tomcat2.port=9009
worker.tomcat2.host=localhost
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor = 1
#
#==========controller balance========
worker.controller.type=lb
worker.controller.balanced_workers=tomcat1,tomcat2
worker.controller.sticky_session=1 |
|