Win32 use AJP to consolidate Tomcat 4.0.4 and Apache 1.3.26

Source: Internet
Author: User
Tags config log win32 tomcat
Apache Preparatory work:

Download:
Apache 1.2.26 Http://www.apache.org/dist/httpd/binaries/win32/apache_1.3.26-win32-x86-no_src.exe
Tomcat 4.0.4 Http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/bin/jakarta-tomcat-4.0.4-LE-jdk14.exe
MOD_JK Http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/win32/i386/mod_jk.dll

Installation process We all know, no longer wordy.

Configure Apache:

Copy the Mod_jk.dll to the%apache_home%/libexec directory.
Add the following information to the%apache_home%/conf/httpd.conf:

#... ...
#LoadModule Unique_id_module modules/mod_unique_id.so
LoadModule Jk_module Libexec/mod_jk.dll

#... ...
#AddModule MOD_UNIQUE_ID.C
Addmodule MOD_JK.C

#... ...
Jkworkersfile "D:/apache/tomcat/work/workers.properties"
Jklogfile Logs/mod_jk.log
Jkloglevel Info
Jklogstampformat "[%a%b%d%h:%m:%s%Y]"

Where Jkworkersfile is the MOD_JK working directory, Jklogfile is the MOD_JK log directory.
Finally, where needed (e.g. VirtualHost), join:

Jkmount/*.jsp ajp13
jkmount/servlet/* ajp13

Save configuration, OK, Apache server configuration complete, below to configure Tomcat.

First, create a new workers.properties file (the same file name as Jkworkersfile) and write the following information:

# ... ...
Workers.tomcat_home=d:/apache/tomcat
workers.java_home=d:/j2sdk1.4.0
ps=/
WORKER.LIST=AJP12, AJP13

# Definition for AJP13 worker
#
worker.ajp13.port=8009
Worker.ajp13.host=localhost
Worker.ajp13.type=ajp13

Where Workers.tomcat_home is the installation path for Tomcat, Workers.java_home is the installation path for JDK
Then save to the D:/apache/tomcat/work (that is, the jkworkersfile path in httpd.conf).

Configure Tomcat:

Modify%tomcat_home%/conf/server.xml

1. Add in <Server></Server>:

<listener classname= "Org.apache.ajp.tomcat4.config.ApacheConfig"/>

2. Add in <Host></Host>:

<listener classname= "Org.apache.ajp.tomcat4.config.ApacheConfig" append= "true"/>

Save, OK, all configuration complete.

I'm not going to say the test, ^_^.
What's the problem, send it to webmaster@yipsilon.com

Reference:
Tomcat AJP1.3 Description Document Http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html
There are also IIS configuration instructions, go to see Ah!!

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.