Configuring Tomcat To Work With IIS
Configuring Tomcat To Work With IIS
2. Install Tomcat. Make sure it’s working on port 8080. Don’t change anything!
<!--
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>
-->
6. If any other connector on port 8009 is uncommented – comment it out.
7. In conf/server.xml just under the top-level <server …> node, add the node:
9. Start Tomcat.
11. I put all of my IIS files in %CATALINA_HOME%/iis. The example here does not show that but to do that you need
to:
workers.java_home=C:\java\j2sdk1.4
workers.tomcat_home="C:\Program Files\Apache Group\Tomcat 4.1"
ps=\
worker.list=myworker
worker.myworker.type=ajp13
worker.myworker.port=8009
worker.myworker.host=localhost
14. Start up the IIS manager and right click on Default Web Site and then select New, Virtual Directory. Press Next
and you will get:
15. Type in jakarta as the alias and press Next and you will get:
16. Type in the directory where isapi_redirect.dll is and press Next and you will get:
17. Uncheck Run Scripts and check Execute and press Next and then Finish.
18. In IIS Manager, right click on the Default Web Site, Select Properties, then select the ISAPI Filters tab. Click the
Add button.
19. Fill out the dialog box with jakarta and the location of isapi_redirect.dll.
20. Reboot your computer. (Yes shutting down and restarting IIS and Tomcat should be sufficient – but sometimes it
isn’t.)
24. If this doesn’t work, buy the book Professional Apache Tomcat and read chapter 14.