Apache + Tomcat (1)

Source: Internet
Author: User

Apache 2.0.59

JDK 1.5.0

Mod_jk-apache-2.0.58.so

 

Step 1: install Apache 2.0.59

Add the following lines to httpd. conf:

Loadmodule jk_module modules/mod_jk-apache-2.0.58.so
Jkworkersfile "C:/Java/tomcat 5.5/CONF/workers. properties" // location of the properties File
Jklogfile "C:/Java/tomcat 5.5/logs/mod_jk2.log" // location of the log file
Jkloglevel info

Add a virtualhost to the end

<Virtualhost *: 80>
Serveradmin localhost
DocumentRoot "C:/Java/tomcat 5.5/webapps/yyx"
# The path of your site project should be the same as the directory settings in Tomcat
Servername localhost
Directoryindex index.html index.htm index. jsp
Errorlog logs/shsc-error_log.txt
Customlog logs/shsc-access_log.txt common
# Jkmount/servlet/* ajp13
# Apache supports servlet transfer for Tomcat Parsing
# Jkmount/*. jsp ajp13
# Apache supports JSP transmission for Tomcat Parsing
# Jkmount/*. Do ajp13
# Apache supports. Do transmission for Tomcat Parsing
Jkmount/* ajp13
# Jkmount/*. * ajp13

</Virtualhost>

C:/Java/tomcat 5.5/CONF/workers. properties can be used by default.

You can see the same content through http: // ip or http: // ip: 8080.

 

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.