IIS6 apache2 integrate the tomcat5 method (1/3)

Source: Internet
Author: User

At first, I used iis to directly connect to tomcat. I searched all the information on the Internet, but I still couldn't get through. Maybe it was iis closed. It seems that tomcat and iis are far from friends.
So I had to find another way. I used apache to listen to 80 for request forwarding. The request to the iis Site was forwarded to the corresponding directory, and the request to the site under tomcat was forwarded to tomcat, as a result, I began to search for such information and finally tried to overcome the difficulties of servlet request Errors. Now I can continue to develop my own website.
Reference:
1. Http://weblife.blogbus.com/s1659/index.html
2. Http://wiki.osportfolio.org/confluence/display/technical/apache+tomcat+mod_jk+integration
The first article basically solved all the problems, and the second article solved the problem that the request servlet could not find the target.
The following describes how to configure three servers step by step from scratch so that they can coordinate their work.
1. Download and install apache2
Download apache2.0.55 for windows
I cannot find it on the official website. It's strange. After downloading to the local device, double-click it to install it. After installation, you should see a small icon in the system tray. It is a feather and green playback arrow icon, which indicates that the installation is correct, if the installation fails, make sure that port 80 is not occupied by other servers.
2. Download and install Tomcat 5
Tomcat is still downloaded from the official website. Select "core: zip" in "5.5.17". I prefer to use this compressed package. After decompression, set the environment variable to use it. Run startup. bat in the bin of the installation path to start tomcat.
3. Install iis6.0
Insert the win2003 installation disk into the optical drive, select "add/delete windows components" from the add or delete programs, select "application server" from the "windows component Wizard", and check the installation disk, follow the wizard prompts to proceed to the next step to install. Iis6.0 cannot be started normally after installation, because the default port 80 is occupied by apache. Double-click "administrative tools/internet Information Service (iis) Manager" and right-click "properties" on "default website (Stop ", on the "website" tab, modify "tcp port" 80 to 88 or another port. OK. Select "default website (Stop)" and click the play icon in the toolbar to start iis. After normal start, "stop" disappears.
4. Test three servers
Change index.html.ento index.html in the apache installation directory/htdocs. enter http: // localhost in the browser and press Enter. If you see the welcome page of apache, apache is running. Enter http: // localhost: 8080 in the browser and press Enter. If the welcome page of tomcat is displayed, tomcat runs normally. Enter http: // localhost: 88 in the browser and press Enter. If the prompt "under construction" is displayed, iis is running.
5. Configure the connection between apache and tomcat
Step 1: 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 mod_jk.so, and put it in the apache2/modules Directory.
Step 2: Open Notepad, enter the following statement, and save it in the tomcat installation directory/conf directory with workers. properties as the file name:

Homepage 1 2 3 Last page

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.