I. Software Installation and PATH settings:
There is nothing to say about this step. It can be installed in the order of J2SDK1.4.1 (or another version), Apache2.0.43, and atat4.1.12.
Set CLASSPATH, PATH, JAVA_HOME, and CATALINA_HOME respectively.
Ii. Integrated Configuration:
1. Download The mod_jk2-2.0.43.dll (Address: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.1/bin/win32/mod_jk2-2.0.43.dll) and copy it to the modules subdirectory under the APACHE installation directory.
2. Edit the configuration file httpd. conf of APACHE2 and add the following lines at the end of the file.
LoadModule jk2_module modules/mod_jk2-2.0.43.dll
<VirtualHost *>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "D:/jakarta-tomcat-4.1.12/webapps"
ServerName dummy-host.example.com
DirectoryIndex index.htm index.html index. jsp
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
The DocumentRoot line must be consistent with the TOMCAT installation directory.
A line of DirectoryIndex is used to automatically interpret JSP files.
3. Add the workers2.properties file to the conf subdirectory of The APACHE2 installation directory. The content of the file is as follows:
# Define the communication channel
[Channel. socket: localhost: 8009]
Info = Ajp13 forwarding over socket
TomcatId = localhost: 8009
# Map All webapp to the Web server uri space
[Uri:/*]
Info = Map the whole webapp
The URI part is not necessarily defined above. You can set sub-paths that are useful to you. For example, if you only want to expose the stuff under the examples sub-directory, you can define it as follows:
# Map the Tomcat examples webapp to the Web server uri space
[Uri:/examples/*]
Info = Map the whole webapp
4. Use the default port 8009 monitor defined in Tomcat4.1.12, without any modification (unless you have changed ^_^ ).
Iii. test:
Start APACHE and TOMCAT respectively (no need to differentiate the Order), open the browser, and enter http: // localhost/. The welcome interface of TOMCAT should be displayed in the above URI configuration.