1. mod_jk.conf
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /opt/lampp/etc/extra/workers.properties
JkShmFile /var/log/httpd/mod_jk.shm
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardDirectories
#JkMount /* lb
#JkUnMount /missing.html lb
JkMount /examples/* lb
JkMount /examples lb
JkMount /jkmanager/* jkstatus
2. wokers.properties
worker.list=lb,jkstatus
worker.node1.port=4009
worker.node1.host=localhost
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node2.port=5009
worker.node2.host=localhost
worker.node2.type=ajp13
worker.node2.lbfactor=1
worker.lb.type=lb
worker.lb.balance_workers=node1,node2
worker.jkstatus.type=status
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /opt/lampp/etc/extra/workers.properties
JkShmFile /var/log/httpd/mod_jk.shm
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardDirectories
#JkMount /* lb
#JkUnMount /missing.html lb
JkMount /examples/* lb
JkMount /examples lb
JkMount /jkmanager/* jkstatus
2. wokers.properties
worker.list=lb,jkstatus
worker.node1.port=4009
worker.node1.host=localhost
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node2.port=5009
worker.node2.host=localhost
worker.node2.type=ajp13
worker.node2.lbfactor=1
worker.lb.type=lb
worker.lb.balance_workers=node1,node2
worker.jkstatus.type=status