Both Apache and Tomcat are projects developed by the Apache open source organization to handle HTTP services, both of which are free and can be run as standalone Web servers. Apache is a Web server and Tomcat is a Java application server.
Apache: is implemented in the C language and is specifically designed to provide HTTP services.
Features: Simple, fast, stable performance, configurable (proxy)
1, mainly used for parsing static text, high concurrency performance, focusing on HTTP services;
2, support static page (HTML), does not support dynamic requests such as: CGI, servlet/jsp, PHP, ASP, etc.;
3, has a strong scalability, can be supported by the plug-in PHP, but also one-way Apache connection Tomcat to achieve connectivity;
4. Apache is the first Web server in the world to use.
Tomcat: Is a Java-developed JSP server (Servlet container) that conforms to the JavaScript Java EE specification and is an extension of Apache.
Features: Free Java application Server
1, mainly used for parsing jsp/servlet, focusing on the Servlet engine;
2, support static page, but efficiency without Apache high; Support servlet, JSP request;
3. Tomcat itself also has a built-in HTTP server to support static content and can be integrated with Apache through Tomcat's configuration management tool.
Apache + Tomcat:
Advantages After Integration:
If the Shenzhen is a static web page, it is processed by Apache and returns the result, and if it is a dynamic request, Apache forwards the parsing work to Tomcat processing, and the result is returned via Apache after Tomcat processing. This can achieve the division of labor, to achieve a long load scale, improve the performance of the system.
Summarize:
An analogy: Apache is a truck that can hold something like HTML. But no water (JSP), to fill the water must have a container (bucket), Tomcat is a bucket (like JSP, such as water), and this bucket can not be placed on the truck.
Transferred from: http://www.cnblogs.com/dyllove98/archive/2013/08/01/3230790.html
Apache and Tomcat Contact and difference (EXT)