Maybe there are a lot of tutorials on the Internet, and this is just a record of my own setup.
Need to simulate the actual environment to do some validation work, here to build the environment is also trying to be simple. Instead of compiling the Apache Http Server itself, I downloaded a compiled installation package: http://mirror.bit.edu.cn/apache//httpd/binaries/win32/ Httpd-2.2.25-win32-x86-openssl-0.9.8y.msi
With Tomcat integration, there are generally three ways to Jk,http_proxy and Ajp_proxy, here in the case of JK. Need to pass the MOD_JK module, you can download the corresponding version here: http://mirrors.cnnic.cn/apache/tomcat/tomcat-connectors/jk/binaries/windows/
After decompression, place in the Modules folder in the Apache installation directory.
Then modify the configuration in the httpd.conf. Add Configuration:
LoadModule jk_module modules/mod_jk.so jkworkersfile conf/workers.properties
The mod_jk.so module is loaded and the configuration file is workers.properties.
Next Configure Worker.properties
workers.tomcat_home=d:apache-tomcat-6.0.41 ps=/worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host= localhost worker.ajp13.type=ajp13
The main configuration is the directory of Tomcat, which has AJP the Protocol's port number version and address.
The next step is to tell Apache what request to Tomcat to handle.
<virtualhost *> ServerAdmin localhost documentroot e:/ ServerName localhost directoryindex index.html index.htm index.jsp index.action jkmount/*web-inf ajp13 jkmount/*j_sprin G_security_check ajp13 jkmount/*.action ajp13 jkmount/servlet/* ajp13 jkmount/games/* ajp13 jkmount/*.jsp ajp13 JkMoun T/*.do ajp13 jkmount/*.action ajp13 </VirtualHost>
Finally, remember to open access permissions.
<directory/> Allow from all </Directory>
Start Tomcat and Apache, all over.
The other two ways, more simple configuration, can refer to: http://www.ibm.com/developerworks/cn/opensource/os-lo-apache-tomcat/