Configuration of Tomcat4.1.12 + Apache2.0.43 in Win2000

Source: Internet
Author: User

 




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.

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.