Operating environment
J2SE 1.5 installed in C: / JDK
Tomcat 5.5.4 installed in C: / Tomcat (stopped)
Windows 2003 comes with IIS6.0 (stopped)
When the Tomcat JK2 IIS connector is decompressed, ISAPI_REDIRECTOR2.DLL is placed in C: / Tomcat / IIS
Next, build a workers2.properties file in the CONF directory in the Tomcat installation directory, copy the following sect of Dongdong to save.
[SHM]
File = c: /tomcat/logs/jk2.log
SIZE = 1048576
[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
After editing the JK2.Properties file, add this sentence:
Request.tomcatauthentication = false
Newly built a registry file Iis.reg, the editorial content is as follows:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE / SOFTWARE / APACHE SOFTWARE FOUNDATION / JAKARTA ISAPI Redirector / 2.0]
"ServerRoot" = "c: // Tomcat"
"eXtensionuri" = "/ jakarta / isapi_redirector2.dll"
"workersfile" = "c: //tomcat//conf//Workers2.properties"
"Loglevel" = "info"
Open Internet Information Service Manager, select a site, modify the main directory in the Properties dialog: C: / Tomcat / WebApps / root, then select "ISAPI Filter", click "Add", filter name to fill Jakarta, The absolute path of your ISAPI_Redirector2.dll is filled in the executable. After the "OK", "OK" is "OK" to close the property page. Right click on the "default website", select "New" -> "Virtual Directory", unfill jakarta, the next step, the path is selected as your isapi_redirector2.dll stored, I am C: / Tomcat / IIS, under One step, the permissions remember to hook "execution" that kind of tick, well, complete.
On the "Web Service Extensions" in the "Internet Information Service Manager" "Web Service Extensions", right-click "Add a new web service extension", the extension of the pop-up box fills Tomcat (in fact, it doesn't matter), "requires File "Add" and "OK" after finding your isapi_redirector2.dll. "Setting the extended state to allow" also hook, determine.
Ok, configure it. Now let's start Tomcat5 first, then start IIS6. Type
Http: // localhost: 8080 / index.jsp Take a look! Then look at it