The relationship between Apache and Tomcat

  

tomcat is the cooperation between sun and apache, the jsp server, support servlet and jsp.

tomcat itself can be used as a web server. When dealing with static pages, tomcat is not as fast as apache, not as configurable as apache, strong.

apache is the most popular web server, powerful and efficient, but does not support jsp and servlet.

So the usual practice is to integrate them, let apache handle static pages, and give dynamic page requests to tomcat for their own advantages.

By loading the integration module and setting it in apache, apache can forward requests that are not their own to tomcat according to the url. ------------------------------------------- APACHE is a web server environment program Enable it to be used as a web server.

However, APACHE only supports static web pages such as (asp, php, cgi, jsp) and other dynamic web pages.

If you want to run jsp in the APACHE environment, you need an interpreter to execute the jsp page. This jsp interpreter is TOMCAT.

Why do you want a JDK? Because jsp needs to connect to the database, jdk is required to provide a connection to the database. So to run jsp web server platform you need APACHE+TOMCAT+JDK ----------------------------------- -------- As for why tomcat handle static pages will be slower, you can understand that tomcat is actually an interpreter of jsp, so whether it is static html or jsp, it will be considered jsp to explain, and then show Come out, so, no apache this direct web server explains fast.

Copyright © Windows knowledge All Rights Reserved