After one year of Java, Apache Tomcat is often used to publish Tomcat server files. Recently, I published my blog to a PHP server to learn that there is an Apache server. After reading some information, I learned that they have the following differences:
- Apache is a web server and Tomcat is an application (Java) server. It is only a servlet (JSP is also translated into servlet) container and can be considered as an extension of Apache.
- Both Apache and tomcat can be run as independent web servers. However, Apache cannot interpret Java programs (JSP, serverlet)
- 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)
- The two are both containers, but they are released differently. 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.
- 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.