The difference between Apache and Tomcat

Source: Internet
Author: User
Tags php server tomcat tomcat server apache tomcat

Do a year of Java, often use Apache Tomcat to publish Tomcat server-side files, recently to do a PHP server, to publish their blog, only to know that there is a Apache server. Read some information, only to learn that they have the following differences: Apache is a Web server, Tomcat is an application (Java) server, it is only a servlet (JSP also translated into a servlet) container, can be considered as an Apache extension.
Both Apache and Tomcat can be run as stand-alone Web servers. But Apache can't explain Java programs (Jsp,serverlet)
Apache is a normal server and only supports HTML, the normal Web page. 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)
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 jrun, etc.
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.

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.