What is the difference between Apache and Tomcat, and why integrate Apache and Tomcat?

Source: Internet
Author: User

1. apache is a Web server, Tomcat is an application (Java) server, it is just a servlet container, is an Apache extension. Both 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 natively supports only HTML, or plain Web pages. However, it can be supported by 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 container, but publish something different: Apache is an HTML container, function like; Tomcat is a jsp/servlet container for publishing JSPs and Java, similar to IBM Webshere, The WebLogic, the JRun and so on. 5. apache and Tomcat are independent and can be integrated on a single server. Apache only supports static Web pages, but dynamic Web pages like asp,,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 reduces Tomcat's service overhead  . Apache is the first Web server in the world to use. It can run on almost all widely used. apache  originated from the  HTTPD 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, which means that the server is full of patches, because it is free software, so it is 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 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 a 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 famous websites in the world such as Amazon.com, YahoO!, W3 consortium, financial times, etc. are the product of Apache, its success lies mainly in its source code open, has an open development team, support cross-platform applications (can run in almost all UNIX,  windows, Linux system Platform) and its portability. The birth of Apache is very dramatic. When the   server project stalled, people who used   servers started exchanging patches for the server, and they quickly realized that it was necessary to set up a forum to manage those patches. In this way, 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 the 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  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 Gateway Interface) **j2ee=java 2 platform, enterprise edition   (JAVA2 Platform, Enterprise Edition) **=extensible markup language  (Extended Markup Language) **=internet information server  ( Internet Information Server)


This article is from "peter-unscrupulousness Youth" blog, please be sure to keep this source http://petervip.blog.51cto.com/3790959/1693027

What is the difference between Apache and Tomcat, and why integrate Apache and Tomcat?

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.