First describe my system, Windows 2003 Server Chinese version +iis6+tomcat5.0.14,jdk 1.4.2 installation directory for C:\JDK,TOMCAT installation directory for C:\TOMCAT, environment variables Java_home and Tomcat The _home are set and point to their respective installation directories. (Note that all files involved in the Tomcat path are then modified to their own Tomcat path)
TOMCAT5 and IIS6 installation I do not say, the Web documents a lot, assuming that we have installed the TOMCAT5 and IIS6 and can run independently, both of the default Web site are pointing to the C:\web directory.
Now all we have to do is go to http://apache.linuxforum.net/dist/jakarta/tomcat-connectors/jk2/binaries/win32/. Jakarta-tomcat-connectors-jk2.0.2-win32-iis.zip to download JK2, the JK2 is responsible for IIS and Tomcat communication, after the unlock to get isapi_redirector2.dll, I put it in the C:\ Tomcat\iis (directory casually).
Next in the Tomcat installation directory under the Conf directory to build a workers2.properties file, the following section of the east to save. Pay attention to file= "..." The path to use "/" Oh!
[shm]
file=c:/Tomcat/logs/jk2.log
size=1048576
# 实际运用时把所有的localhost和8009换成你自己的IP和端口
[channel.socket:localhost:8009]
port=8009
host=localhost
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Uri mapping
[uri:/*.jsp]
[uri:/web/*]
worker=ajp13:localhost:8009
# define the worker
[status:status]
# Uri mapping
[uri:/jkstatus/*]
worker=status:status