Integration of Apache 2.0.45 + Tomcat 5.0.28 in Windows

Source: Internet
Author: User
1. Copy the downloaded mod_jk_2.0.52.dll to D:/service/apache2/modules.

2. Create a file under D:/service/apache2/CONF/, workers. Properties
#
# Workers. Properties
PS =/
# List the workers by name
Worker. List = ajp13
Worker. ajp13.port = 8009
Worker. ajp13.host = localhost
Worker. ajp13.type = ajp13
Worker. ajp13.lbfactor = 1

2. Configure the httpd. conf file of Apache and add
# Using mod_jk2.dll to redirect dynamic callto Tomcat
Loadmodule jk_module modules/mod_jk_2.0.52.dll
Jkworkersfile "D:/service/apache2/CONF/workers. properties"
Jklogfile logs/mod_jk2.log
Jkmount/servlet/* ajp13
Jkmount/*. jsp ajp13
Jkmount/*. Do ajp13

# Vm, Which is set the same as server. XML in Tomcat and points to the same application
<Virtualhost commnet.wps.com>
Serveradmin admin@cld.cn
DocumentRoot E:/projects/junling/root
Servername junling.wps.com
Directoryindex index.html index.htm index. jsp
Errorlog logs/shsc-error_log.txt
Customlog logs/shsc-access_log.txt common
</Virtualhost>

3. Configure Tomcat 5.0.2
Modify the server. xml file under D: \ Tomcat 5.0.2 \ conf and configure a VM:
<Host name = "junling.wps.com" DEBUG = "0" appbase = "E: \ projects \ junling" unpackwars = "true" autodeploy = "true"/>

4. Restart Apache and tomcat servers

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.