Using AJP1.3 to consolidate Apache 2.0.42 and Tomcat4.1.12
Source: Internet
Author: User
Apache is not quite the same as the last article.
Preparatory work:
1. AJP1.3 Tomcat Connector Source code:
Http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/src/jakarta-tomcat-connectors-4.1.12-src.zip
2. Tomcat 4.1.12
Http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/bin/jakarta-tomcat-4.1.12.exe
3. Apache Httpd Server 2.0.40
Http://www.apache.org/dist/httpd/binaries/win32/apache_2.0.42-win32-x86-no_ssl.exe
4. JDK 1.3 Version
I don't have to give you this.
5.Visual C + + 6.0
I'm using Visual c++.net here.
OK, here we go.
Statement:
1. My working folder is F:\workplace, I use%work% to express it later.
All processes, for your reference
One install Apache, tomcat
Select the custom installation of Apache HTTPD Server to install the contents of the Headers and library. Select Install, and then install to the%work%\apache2 directory.
Installing JDK
Install Tomcat 4.1 into the%work%\tomcat41 directory.
Configure Java_home as the installation path for JDK.
Configures the installation path for the Apache HTTPD server apache2_home.
Two build AJP dynamic link library \
Open Directory:%work%\jtc\jakarta-tomcat-connectors-4.1.12-src\jk\native\apache-2.0\
Open a MOD_JK.DSP file with Visual C + +
Compile the file, generate Mod_jk.dll (some of which may be warning, ignore)
Copy Mod_jk.dll to%apache2_home%\modules directory.
OK, finish the task.
Three Modify configuration file
At the end of%apache2_home%\conf\httpd.conf add:
LoadModule Jk_module Modules/mod_jk.dll
#AddModule mod_jk.c//tomcat instructions are written in the documentation, and I'm not going to start if I remove the annotations here.
#这里的路径是worker. Absolute path to Properties
Jkworkersfile f:/workplace/apache2/conf/workers.properties
#这里是日志文件的绝对路径
Jklogfile F:/workplace/apache2/log/mod_jk.log
Jkloglevel Info
Jklogstampformat "[%a%b%d%h:%m:%s%Y]"
Additional JSP support is required on the virtual host:
jkmount/servlet/* ajp13
Jkmount/*.jsp ajp13
Add the Work.properties file to the%apache2_home%\conf directory, which reads:
Note: 1. Tomcat is not configured because it supports AJP1.3 by default.
2. The Tomcat virtual host root directory path is the same as the same virtual host root path as Apache.
Test environment: Windows XP + j2sdk1.4.0
Summary \ R
The above is the most simplified configuration scenario. The user can enhance his functionality by configuring commands.
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