Author: greathack 
URL: blog.greathack.com 
Email: greathack@3java.com 
Reprinted Please retain the author information 1, Brief Description: 1, the installation of the software used: apache_2.0.55-win32-x86-no_ssl.msihttp: // jdk-1_5_0_04-windows-i586-p.exehttps: // apache-tomcat-6.0http: // www.apache.org/dist/tomcat/tomcat-6/ mod_jk_1.2.6_2.0.50.dllhttp: // Onnectors/JK/binaries/Win32/jk-1.2.6/mod_jk_1.2.6_2.0.50.dll 2, mod_jk_1.2.6_2.0.50 Description: mod_jk_1.2.6_2.0.50 is the old mod_jk, from apache2.0.59, Apache for mod_jk, a new set of corresponding, for details, see apache web site 2. install Apache after downloading Apache, double-click the apache_2.0.55-win32-x86-no_ssl.msi file. Select agree to the terms, click Next; enter the domain name (without www) in the network domain box, and enter the domain name with a prefix (with WWW or other prefix) in the servername box ), enter your email address in email address, click for all users single region, and then click Next. Install the jdkdouble-click jdk-1_5_0_04-windows-i586-p.exe file on the third-party operating system. All the way to next. 4. install Tomcat by default. 5. Install mod_jk and copy mod_jk_1.2.6_2.0.50.dll to the modules directory under the Apache installation directory. Name mod_jk.dll 6. Configure httpd. conf to go to the Apache installation directory, find the conf folder, and double-click it. Open httpd in text. CONF file. Add namevirtualhost *: 80 <virtualhost *: 80> serveradmin $ mail_address DocumentRoot "$ apache_home/htdocs" servername $ servername directoryindex index to the bottom of the file. JSP index.htm </virtualhost> # Load mod_jk moduleloadmodule jk_module "modules/mod_jk.dll" <ifmodule mod_jk.c> # workers. properties address jkworkersfile $ tomcat_home/CONF/workers. properties # Log File jklogfile $ atat_home/logs/mod_jk.log # Set the jk log level [debug/error/info] jkloglevel info # select the timestamp log format jklogstampformat "[% A % B % d % H: % m: % S % Y] "# Send *. do ,*. JSP ,*. XLS files to worker named ajp13 jkmount /*. do ajp13 jkmount /*. JSP ajp13 </ifmodule> in the application, you need to change $ tomcat_home to the tomcat installation directory, change $ apache_home to the Apache installation directory, and change $ servername to the host name, you can also write an IP address without a host name. Change $ mail_address to your email address. 7. Configure workers. properties to create a file in the conf directory under the tomcat installation directory. 
Workers. Properties 
:Workers. tomcat_home = $ tomcat_homeworkers.java_home = $ java_homeps =/worker. list = ajp13 worker. ajp13.port = 8009 worker. ajp13.host = $ servernameworker. ajp13.type = ajp13worker. ajp13.lbfactor = 1 in the application, you need to change $ tomcat_home to the tomcat installation directory, change $ java_home to the JDK installation directory, and change $ servername to the host name, you can also enter an IP address if no VM is set. 8. Configure the Tomcat VM to open the server in the conf directory under the tomcat installation directory. XML file, find the </engine> tag, and add the following to it: Helloworld. jsp:<% @ Page contenttype = "text/html; charset = gb2312" Language = "Java" Import = "Java. SQL. *" errorpage = "" %> <! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <HTML xmlns =" http://www.w3.org/1999/xhtml ";> It indicates that your configuration is correct. Now you can use JSP in Apache.