Tomcat, in addition to supporting Java servlet/jsp, can also be used as a Web server, but in the static HTML files, picture files, such as parsing efficiency is not as efficient as the Apache httpd execution. Server with Tomcat if the site has a large number of visits, system resource consumption will be significantly elevated, the author recently encountered this problem in the implementation of the project, they also think of the application of Tomcat+apache services. Apache is responsible for static resource processing, and Tomcat is responsible for the processing of dynamic resources such as JSP and Java servlet. Read a lot on the internet to introduce the Apache and Tomcat integration posts. Mostly for each other, there are several key issues are not clear, and most of the article explained in the version of the software are already relatively old. Therefore, the author summed up the experience of their actual operation, hope to help everyone.
Preparatory work:
1, Apache 2.0.55
Download Address: Http://apache.justdn.org/httpd/binaries/win32/apache_2.0.55-win32-x86-no_ssl.msi
2, Tomcat 5.5
Download Address: http://tomcat.apache.org/download-55.cgi
3, JRE1.5.0 Update6
Download Address: http://java.sun.com/j2se/1.5.0/download.jsp
You can also choose to install JDK,JDK not only contains support for running Java applications, but also includes J2SE development packages. However, if you are just applying, it is recommended that you download only the JRE.
4, jk-apache-2.0.55
Download Address:
Http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.15/mod_jk-apache-2.0.55.so
Note that the JK version must be the same as your Apache version. JK download can be directly to the apache.org website download, there are a variety of versions, applicable to a variety of operating systems, the address is as follows:
http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/
Windows users enter the Win32 directory, different Tomcat corresponds to different JK file extensions, possibly *.dll, or *.so, download the appropriate JK version according to your Tomcat version.