1. apache/conf/httpd.conf
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /usr/local/apache/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkShmFile /usr/local/apache/logs/shm.file
JkLogLevel error
JkMount /*.jsp ajp13
JkMount /*.do ajp13
JkMount /servlet/* ajp13
JkMount /manager/* ajp13
JkMount /WEB-INF/* ajp13
#
#VirtualDocumentRoot /webdir/%0
#VirtualScriptAlias /webdir/%0/cgi-bin
#JkMount /*.jsp ajp13
#JkMount /*.do ajp13
#JkMount /servlet/* ajp13
#JkMount /manager/* ajp13
#JkMount /WEB-INF/* ajp13
#JkUnMount / ajp13
#JkUnMount /*/ ajp13
#JkUnMount /*.htm ajp13
#JkUnMount /*.html ajp13
#JkUnMount /*.xml ajp13
#JkUnMount /*.php ajp13
#JkUnMount /*.net ajp13
#JkUnMount /*.gif ajp13
#JkUnMount /*.jpg ajp13
#JkUnMount /*.JPG ajp13
#JkUnMount /*.swf ajp13
#JkUnMount /*.bmp ajp13
#JkUnMount /*.png ajp13
#JkUnMount /*.css ajp13
#JkUnMount /*.js ajp13
#
2. apache/conf/workers.properties
workers.java_home=/usr/javahome
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.socket_timeout=15
worker.ajp13.cachesize=30
worker.ajp13.cache_timeout=60
worker.ajp13.socket_keepalive=1
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)classic$(ps)libjvm.so
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home)
tomcat 负载均衡参考:
http://myhat.blog.51cto.com/391263/785131/
阅读(936) | 评论(0) | 转发(0) |