Differences between Apache and Tomcat

Source: Internet
Author: User
Tags website server

Apache Official Website: http://www.apache.org/
Tomcat Official Website: http://tomcat.apache.org/

1. Apache is a web server and Tomcat is an application (Java) server. It is only a servlet container and is an extension of Apache.

2. Apache and tomcat can both be run as independent web servers, but Apache cannot interpret Java programs (JSP and serverlet ).

3. Apache is a common server and only HTML is supported. However, you can use the plug-in to support PHP and connect to Tomcat (one-way Apache connection to Tomcat means you can access Tomcat resources through Apache. Otherwise)

4. the two are both a container, but the publishing is different: Apache is an HTML container with functions like IIS; Tomcat is a JSP/servlet container for publishing JSP and Java, similar to IBM webshere, EBA WebLogic, and Sun jrun.

5. Apache and tomcat are independent and can be integrated on a single server.

For example, Apache is a truck with some things such as HTML. But you cannot hold water. To hold water, you must have a container (bucket). Tomcat is a bucket (such as Java), and this bucket can not be placed on a truck.

Apache only supports static Web pages, but dynamic web pages such as ASP, PHP, CGI, and JSP must be processed by Tomcat.

Integrated Use of Apache and tomcat: if the client requests a static page, the Apache server only needs to respond to the request. If the client requests a dynamic page, the Tomcat server responds to the request; because JSP is interpreted on the server side, so integration can reduce Tomcat service overhead.

Apache is the world's No. 1 web server. It can run on almost all widely used computer platforms.

Apache originated 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 pronunciation of "a patchy server", which means a server full of patches, because it is a free software, so there are people who constantly develop new functions, new features, and modify the original defects for it. Apache is simple, fast, and stable, and can be used as a proxy server. Apache provides excellent support for Linux.

Apache has multiple products that support SSL technology and multiple virtual hosts. Apache is a process-based structure. Processes consume more system expenses than threads and are not suitable for multi-processor environments. Therefore, when an Apache Web site is expanded, it is usually to add servers or expand cluster nodes, rather than adding processors. Apache is still the most popular Web server in the world so far, with a market share of about 60%. Many famous websites in the world, such as Amazon.com and Yahoo! W3 Consortium and Financial Times are all the products of Apache, its success mainly lies in its open source code, an open development team, and support for cross-platform applications (which can run on almost all Unix, Windows, and Linux platforms) and its portability.

The emergence of Apache is dramatic. After the ncsa www server project pause, those who use the ncsa www server began to exchange their patches for the server, and they soon realized that it was necessary to set up a forum to manage these patches. In this way, the Apache Group was born, and then the Group created Apache on the basis of NCSA. If you are planning to select a Web server, there is no doubt that Apache is your best choice.

Tomcat is a Java-based Web Application Software container that runs open source code, servlet, and JSP Web application software. Tomcat Server is executed according to servlet and JSP specifications. Therefore, we can say that Tomcat Server implements Apache-Jakarta specifications and is better than most commercial application software servers.

Tomcat is a standard implementation of Java Servlet 2.2 and JavaServer Pages 1.1 technologies, 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 JServ Code, especially the Apache service adapter. With the advent of the Catalina Servlet engine, the performance of Tomcat version 4 has been improved, making it a Servlet/JSP Container worth considering. Therefore, many WEB servers currently adopt Tomcat.

** JSP = Java Server Pages (Java Server webpage)
** ASP = Active Server Pages (Active Server webpage)
** CGI = Common Gateway Interface (Common Gateway Interface)
** J2EE = Java 2 Platform, Enterprise Edition (Java2 Platform, Enterprise Edition)
** XML = eXtensible Markup Language (Extended Markup Language)
** IIS = Internet Information Server (Internet Information Server)

-----------------
About IIS:
IIS is a service provided by Windows, including WWW server, FTP server, and SMTP server.
On UNIX or Linux platforms, Apache is a website server. For Windows NT/2000, IIS is a standard website server. IIS is a service and a component of the Windows 2000 Server series. Unlike general applications, it is a part of the operating system just like a driver, and has the service function that is started at the same time when the system starts.

This article from the CSDN blog, reproduced please indicate the source: http://blog.csdn.net/guohaijiao/archive/2008/10/29/3176146.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.