1. Apache is a web server, tomcat is an application (java) server, it is just a servlet container, is an Apache Extension.
2. Apache and Tomcat can be run as standalone web servers, but Apache cannot interpret Java programs (jsp,serverlet).
3. Apache is an ordinary server, which itself only supports HTML as a normal web Page. however, PHP can be supported via plugins and can be connected to Tomcat (one-way Apache connection tomcat, which means that Tomcat resources can be accessed through apache.) Otherwise)
4. Both are a kind of container, but publish something different: Apache is an HTML container, functions like iis, Tomcat is a jsp/servlet container for publishing JSP and java, similar to IBM webshere, EBA weblogic, Sun's JRun and so On.
5. Apache and Tomcat are independent and can be integrated on a single server.
An analogy: Apache is a truck that can hold something like html. But the water must be filled with containers (buckets), and Tomcat is a bucket (a water like java), and the bucket can be kept out of the Truck.
Apache only supports static web pages, but dynamic Web pages like asp,php,cgi,jsp need to be handled by tomcat.
Apache and Tomcat consolidated Use: if the client is requesting a static page, only the Apache server responds to the request, or if the client requests a dynamic page, the Tomcat server responds to the request, because the JSP is the Server-side interpretation code, This consolidation can reduce the service overhead of tomcat.
Apache is the first Web server in the world to Use. It can run on almost all of the widely used computer Platforms.
Apache originates from the NCSAHTTPD server and has been modified many times to become one of the most popular Web server software in the WORLD. Apache is taken from the "a patchy server" pronunciation, meaning is full of patches of the server, because it is free software, so constantly someone to develop new features, new features, Modify the original FLAW. Apache is characterized by simple, fast, stable performance, and can be used as a proxy server. Apache support for Linux is quite perfect.
Apache has a variety of products that can support SSL technology and support multiple virtual Hosts. Apache is a process-based structure that consumes more system overhead than threads, and is less suited to multiprocessor environments, so when you scale an Apache web site, you typically increase the server or expand the cluster nodes instead of adding the Processor. So far, Apache is still the most used Web server in the world, with a market share of about 60%. Many of the World's most famous websites such as amazon.com, yahoo!, W3 Consortium, Financial Times are the product of apache, its success lies mainly in its source code open, there is an open development team, Supports Cross-platform applications (which can run on almost all unix, Windows, Linux system Platforms) and its Portability.
The birth of Apache is very dramatic. When the NCSA WWW Server project stalled, people who used the NCSA WWW server began exchanging patches for the server, and they quickly realized that it was necessary to set up a forum to manage these Patches. In this way, the Apache group was born, and later the group created Apache on the basis of Ncsa. If you are ready to choose a web server, there is no doubt that Apache is your best choice.
Tomcat is a java-based Web application container that is open source, running servlets, and JSP Web application Software. Tomcat server is executed according to the servlet and JSP specifications, so we can say that Tomcat server also implements the Apache-jakarta specification and is better than most commercial application Servers.
Tomcat is a standard implementation of Java Servlet 2.2 and JavaServer Pages 1.1 technology and is a free software developed under the Apache License. Tomcat is a fully rewritten servlet API 2.2 and JSP 1.1 compatible servlet/jsp Container. Tomcat uses some code from jserv, especially the Apache service Adapter. With the advent of the Catalina Servlet engine, the performance of the Tomcat fourth version has been improved, making it a worthwhile servlet/jsp container, so many Web servers are now using Tomcat.
**jsp=java Server Pages (Java Server Web Page)
**asp=active Server Pages (active Server Web Page)
**cgi=common Gateway Interface (universal Gateways Interface)
**j2ee=java 2 Platform, Enterprise Edition (Java2 platform, Corporate Edition)
**xml=extensible Markup Language (extended Markup Language)
**iis=internet Information Server (internet information server)
What is the difference between Apache and tomcat, and why integrate Apache and tomcat?