Differences between APACHE and tomcat.

Source: Internet
Author: User

 

"Have you used Apache (APACHE ?", "No, I only used Tomcat ". This is a conversation between the job seeker and the interviewer. The job seeker is also trying to figure out that "Apache" appears every time the Web server is started? In addition, the "Tomcat" text appeared again when the background was started. Why does it mean that the two of them are not the same? Haha, I thought Apache was Tomcat for a long time. It seems that they have always appeared at the same time, and most people are talking about tomcat. Few people are talking about Apache, however, the word "Apache" appeared again! It is still not solid enough. I seldom pay attention to this content. Since that interview, I immediately checked their differences at night:

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 ). 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 and tomcat are independent and can be integrated on the same server.

 

Apache is a web server and Tomcat is an application (Java) server. It is only a servlet container and is an extension of Apache. Both Apache and tomcat can be run as independent web servers, but Apache cannot interpret Java programs (JSP and serverlet ).

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 WebSphere, BEA WebLogic, and Sun jrun.

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 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.

"Have you used Apache (APACHE ?", "No, I only used Tomcat ". This is a conversation between the job seeker and the interviewer. The job seeker is also trying to figure out that "Apache" appears every time the Web server is started? In addition, the "Tomcat" text appeared again when the background was started. Why does it mean that the two of them are not the same? Haha, I thought Apache was Tomcat for a long time. It seems that they have always appeared at the same time, and most people are talking about tomcat. Few people are talking about Apache, however, the word "Apache" appeared again! It is still not solid enough. I seldom pay attention to this content. Since that interview, I immediately checked their differences at night:

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 ). 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 and tomcat are independent and can be integrated on the same server.

 

Apache is a web server and Tomcat is an application (Java) server. It is only a servlet container and is an extension of Apache. Both Apache and tomcat can be run as independent web servers, but Apache cannot interpret Java programs (JSP and serverlet ).

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 WebSphere, BEA WebLogic, and Sun jrun.

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 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.

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.