apache2.0.53+tomcat5.5.9 Integration Tutorial (Windows chapter)

Source: Internet
Author: User
Tags socket win32 zip tomcat
apache|window| Tutorial
After reading a lot of tutorials on the web, I found that some can not be implemented now, or the method is too complex. So I try to install the pack, group of groups, spent a day in the afternoon, and finally finished, only to find that online those seem a little strange, so simple why so complex to achieve it? That's good, Let's start right now!

The first step is to download the following software: Apache2.0.53 for win32,tomcat5.5.9 for Win32, Jakarta-tomcat-connectors-jk2.0.4-win32-apache2.0.49.zip these three things on their respective websites have downloads, if the implementation can not find the contact with me, I will provide to you.

The second step, the installation of the method I will not say, you have to use JSP, at least to install J2SDK it? As for the version, more than 1.4 of the line; Then the Apache2 and TOMCAT5 were fitted. And then unzip jakarta-tomcat-connectors-jk2.0.4-win32-apache2.0.49.zip this file and put modules in the Mod_ Jk2.so is placed in the Modules folder under the Apache installation directory. The second step is done.

The third step, the configuration file, we first configure the Apache file. Go to Apache's installation directory and locate the Conf folder, where you can create a new file named Worker2.properties with Notepad, which reads:

[channel.socket:localhost:8009]port=8009host=127.0.0.1

[ajp13:localhost:8009]channel=channel.socket:localhost:8009

[uri:/examples/*] worker=ajp13:localhost:8009

where [uri:/examples/*] is the examples folder of your webapp/root/in Tomcat5, you can change your name, but don't forget to create a folder with the same name in it. After you finish writing the above, then save and close Notepad.

Next, configure the httpd.conf file in the Conf in Apache, and then add the following information to the last side

<ifmodule mod_jk2.c> #-----------------------------------------------# Where to find the Workers2.properties File #-----------------------------------------------Jkset config.file conf/workers2.properties</ifmodule>

LoadModule jk2_module "Modules/mod_jk2.so"

Then save the exit, and the last thing to do is to reboot or start the Apache2 with the TOMCAT2 server and enter http://localhost/examples/to see if the files that appear in Tomcat webapp/root/examples/ , then our approach succeeds. Hey, how's it going, easy?


Related Article

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.