Apache2 Integration Tomcat5 and IIS6 tutorials in Win2003

Source: Internet
Author: User

In order to be able to run their own Java program on the existing IIS6 server, after half a year's attempt, today finally finished, so happy.

First of all, using IIS to connect directly to tomcat, searched all the information on the Internet, but the dead or not even, perhaps IIS closed bar, it seems that Tomcat and IIS far from becoming friends.

So had to find a way, with the Apache listening 80来 do request forwarding, request to the site of IIS to go to the corresponding directory, request to Tomcat under the site forward to Tomcat, then began to look for this information, finally after repeated trial, right to overcome the difficulty of requesting servlet error , and now I can finally continue to do my own website.

Reference Documentation:

1.http://weblife.blogbus.com/s1659/index.html

2.http://wiki.osportfolio.org/confluence/display/technical/apache+tomcat+mod_jk+integration

The first document basically solves all the problems, and the second document solves the problem of requesting a servlet to be unable to find the target

The next step is to configure three servers to coordinate their work, starting from scratch.

1. Download and install Apache2

Download apache2.0.55 for Windows

I can't find it on the official website, it's weird. After downloading to the local double-click can be installed, after the installation of the system tray should see a small icon, is a feather and green play arrow icon, which means the correct installation, if not properly installed, please confirm that 80 ports are not owned by another server.

2. Download and install TOMCAT5

Tomcat or to the official website to download, choose 5.5.17 Core:zip, I am more accustomed to using this compression package, after decompression set environment variable can be used. You can start Tomcat by running Startup.bat in the bin of the installation path.

3. Install IIS6.0

Insert the Win2003 installation disk into the CD drive, select Add/Remove Windows components in the Add or Remove Programs, select Application Server in the Windows Components Wizard, and then click on the check box to follow the wizard prompts for the next step. IIS6.0 does not start properly after installation because the default port 80 is already occupied by Apache. Double-click to open the Administrative Tools/internet Information Services (IIS) Manager, and on the default Web site (stop), right-click Select Properties and modify TCP port 80 to 88 or another port on the Web Site tab to determine. If you select the Default Web site (stop) and then click the Play icon in the toolbar, you can start IIS, and the word "stop" after normal startup disappears.

4. Test 3 Servers

Modify Apache installation directory/htdocs index.html.en renamed to Index.html, in the browser input http://localhost return if you see the Apache welcome interface, the Apache is running. Enter http://localhost:8080 carriage return in the browser if you see the Tomcat welcome interface, this means that Tomcat is working properly. Enter http://localhost:88 carriage return in the browser if you see a prompt in build, this means that IIS is running.

5. Configure Apache and Tomcat connections

The first step: in http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.6

Download the Mod_jk_1.2.6_2.0.50.dll file, rename it to mod_jk.so and place it in the Apache2/modules directory.

Step two: Open Notepad, enter the following statements, and save the file name in the Workers.properties directory under the Tomcat installation directory/conf:

workers.tomcat_home=C:\Program Files\jakarta-tomcat-5.0.28
workers.java_home=C:\Program Files\Java\jdk1.5.0_06
ps=\
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.