Use Apache and tomcat to build a JSP environment in Windows

Source: Internet
Author: User

First, install Apache, tomcat, and JDK. In turn, my versions are apache2.2.10, Tomcat 6.0.18, and jdk1.6.0 _ 05.

Locate httpd. conf and modify
<Ifmodule dir_module>
Directoryindex index.html index.htm index. jsp
</Ifmodule>

 

Add
Loadmodule jk_module modules/mod_jk.so
Jkworkersfile "F:/Apache-Tomcat-6.0.18/CONF/workers. properties"
Jkmount/servlet/* ajp13
Jkmount/*. jsp ajp13

Add <context Path = "" docbase = "F:/Web"/> (configure the main directory) to Tomcat server. xml)

Put workers. properties in the conf folder of Tomcat.
Put mod_jk.so under modules of Apache

 

The content of the workers. properties file is:

Workers. tomcat_home = "F:/Apache-Tomcat-6.0.18"
Workers. java_home = "C:/program files/Java/jdk1.6.0 _ 05"
PS =/
Worker. List = ajp13 (module version of mod_jk)
Worker. ajp13.port = 8009 (working port of mod_jk)
Worker. ajp13.host = localhost
Worker. ajp13.type = ajp13
Worker. ajp13.lbfactor = 1

 

Mod_jk.so:

Http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.26/

Find the version corresponding to your Apache. Here I select

Http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.26/mod_jk-1.2.26-httpd-2.2.4.so

Related Article

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.