1)建立文件夹 Jakarta Isapi Redirector,下建立目录 bin,conf,log
2)拷贝isapi_redirect.dll到bin目录,同时建立isapi_redirect.properties文件,内容如下:
# Configuration file for the Jakarta ISAPI Redirector
The path to the ISAPI Redirector Extension, relative to the website
# This must be in a virtual directory with execute privileges
extension_uri=/jakarta/isapi_redirect.dll
Full path to the log file for the ISAPI Redirector
log_file=C:/Program Files/Apache Software Foundation/Jakarta Isapi Redirector/log/isapi_redirect.log
Log level (debug, info, warn, error or trace)
log_level=debug
Full path to the workers.properties file
worker_file=C:/Program Files/Apache Software Foundation/Jakarta Isapi Redirector/conf/workers.properties
Full path to the uriworkermap.properties file
worker_mount_file=C:/Program Files/Apache Software Foundation/Jakarta Isapi Redirector/conf/uriworkermap.properties
路径自己看着改吧。
2. workers.properties文件
安装好上述程序后,编辑conf目录下此文件,内容为
# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.reclycle_timeout=300
3. uriworkermap.properties 文件
拷贝到conf目录下
/*.jsp=worker1
/*.do=worker1
/union*=worker1
4. 在IIS中加入"jakarta"虚拟目录
注册表修改以后,应该在IIS中加入名为"jakarta"的虚拟目录,它是JK插件所在的目录,以下是操作步骤。注意,此名称不能改动,必须和注册表中键值保持一致。