http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.28/
存在apache中的modules 目錄
2.產生或修改workers.properties 檔案, 存在apache下的conf 目錄中
#文件內容開始
workers.tomcat_home="C:\AppServ\Tomcat"
workers.java_home="C:\Program Files\Java\jdk1.6.0_12"
ps=\
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps) classes
worker.inprocess.class_path=$(workers.tomcat_home)$(ps) lib$ (ps)jaxp.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$ (ps)parser.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)common$(ps)lib$(ps)jasper.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)common$(ps)lib$(ps)servlet.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)common$(ps)lib$(ps)webserver.jar
worker.inprocess.class_path=$(workers.java_home)$(ps)lib$(ps)tools.jar
worker.inprocess.cmd_line=-config
worker.inprocess.cmd_line=$(workers.tomcat_home) /conf/jni_server.xml
worker.inprocess.cmd_line=-home
worker.inprocess.cmd_line=$(workers.tomcat_home)
worker.inprocess.jvm_lib=$(workers.java_home) $(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)inprocess.stderr
worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home)
#文件內容結束
2.產生或修改http-vhosts.conf 檔案, 存在apache下的conf\extra 目錄中
#文件內容開始
ServerAdmin xxx@yahoo.com.tw
DocumentRoot C:/AppServ/www
ServerName localhost
DirectoryIndex index.php index.html index.htm index.jsp index.jspx
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
#文件內容結束
3.在apache下的conf 目錄中的httpd.conf 檔最未端加入下列內容
#文件內容開始
LoadModule jk_module modules/mod_jk-1.2.28-httpd-2.2.3.so
JkWorkersFile "C:\AppServ\Apache2.2\conf\workers.properties"
JkLogFile "logs/mod_jk.log"
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /spadmin ajp13
JkMount /spadmin/* ajp13
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
JkMount /*.do ajp13
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
#
# ResinConfigServer localhost 6802
#CauchoStatus yes
#
#文件內容結束
4.重新啓動apache 及tomcat 就可以了
沒有留言:
張貼留言