The difference between Apache and Tomcat

Source: Internet
Author: User
Tags tomcat server
the difference between Apache and Tomcat

Apache and Tomcat Differences

1. Apache is a Web server, Tomcat is an application (Java) server, it is just a servlet container, is an extension of Apache.

2. Apache and Tomcat can be run as stand-alone Web servers, but Apache cannot interpret Java programs (Jsp,serverlet).

3. Apache is a normal server that only supports HTML, or normal Web pages. However, you can support PHP through Plug-ins, but also with Tomcat connectivity (one-way Apache connection Tomcat, that is, through Apache access to Tomcat resources.) otherwise)

4. Both are a kind of container, but the things that are published are different: Apache is an HTML container that functions like IIS; Tomcat is a jsp/servlet container for publishing JSP and Java, similar to IBM's Webshere, EBA's WebLogic, Sun's jrun and so on.

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

For example, Apache is a truck that can be loaded with something like HTML. But not the water, the water must have a container (bucket), Tomcat is a bucket (like Java, such as water), and this bucket can not be placed on 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 consolidation use: If the client requests a static page, only the Apache server responds to the request, and if the client requests a dynamic page, the Tomcat server responds to the request, because the JSP is the server-side interpreter code, This consolidation can reduce Tomcat's service overhead.

Apache is the world's first-ranked Web server. It can run on almost any widely used computer platform.

Apache originated from the NCSAHTTPD server, and has been modified several times to become one of the most popular Web server software in the world. Apache from the "a patchy server" pronunciation, meaning that the server is full of patches, because it is free software, so constantly someone to develop new features for it, new features, modify the original defects. Apache features simple, fast, stable performance, and can be used as a proxy server. Apache's 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 architecture that consumes more system overhead than threads and is less suited to a multiprocessor environment, so when an Apache web site is scaled up, it is usually to increase the server or expand the cluster nodes rather than increase the processor. To date, Apache is still the world's most used Web server, with a market share of around 60%. Many of the world's famous sites such as Amazon.com, Yahoo!, W3 Consortium, Financial times, etc. are the products of Apache, its success is 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 stopped, people who used the NCSA WWW server began exchanging their patches for the server, and they quickly realized that it was necessary to set up a forum to manage these patches. So, the Apache group was born, and then the group created Apache on the basis of NCSA. If you're ready to choose a Web server, Apache is your best choice.

Tomcat is an open-source, Java-based Web application container that runs servlet 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 software servers.

Tomcat is the standard implementation of Java Servlet 2.2 and JavaServer Pages 1.1 technology and is free software developed under the Apache license. Tomcat is a fully rewritten servlet API 2.2 and JSP 1.1 compliant servlet/jsp container. Tomcat uses some of the Jserv code, especially the Apache service adapter. With the advent of the Catalina Servlet engine, the performance of the Tomcat fourth version has been elevated, making it a servlet/jsp container to consider, so many Web servers are currently 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, Enterprise Edition)
**xml=extensible Markup Language (extended Markup Language)
**iis=internet Information Server (Internet Information Server)

                                                                                          ---over

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.