Home>Article>Operation and Maintenance> What is the difference between apache and tomcat
Apache is an ordinary server, and it only supports html, which is ordinary web pages.However, PHP can be supported through plug-ins, and it can also be connected to Tomcat (one-way Apache connection to Tomcat, which means that Tomcat resources can be accessed through Apache. Vice versa). Apache only supports static web pages, but dynamic web pages such as php, cgi, jsp, etc. need Tomcat to process.
Tomcat is a Servlet containerdeveloped by the Jakarta project under the Apache Software Foundation. It is implemented in accordance with the technical specifications provided by Sun Microsystems. It supports Servlet and JavaServer Page (JSP), and provides some unique functions as a Web server, such as Tomcat management and control platform, security domain management and Tomcat valve. Since Tomcat itself also contains an HTTP server, it can also be regarded as a separate Web server.
However, Tomcat cannot be confused with Apache Web Server. Apache Web Server is an HTTP web server implemented in C language; the two HTTP web servers are not bundled together. Apache Tomcat includes a configuration management tool, which can also be configured by editing configuration files in XML format. Apache, nginx, and tomcat are collectively known as the Three Musketeers of web services, which shows their wide application.
What is the difference between apache and tomcat?
apache is a web server, tomcat is an application (java) server, it is just a The servlet (jsp is also translated as servlet) container can be considered as an extension of apache.
Both apache and tomcat can be run as independent web servers.Butapache cannot interpret java programs (jsp, serverlet)
Apache is an ordinary server, and it only supports html, which is ordinary web pages.However, PHP can be supported through plug-ins, and it can also be connected to Tomcat (one-way Apache connection to Tomcat, which means that Tomcat resources can be accessed through Apache. Vice versa)
Both are a kind of container , but the things released are different.Apache is an html container, which functions like IIS. Tomcat is a jsp/servlet container, used to publish JSP and JAVA. Similar ones include IBM's webshere, EBA's Weblogic, sun's JRun, etc.
Apache and tomcat are independent and can be integrated on the same server.
For more Apache related technical articles, please visit theApache Usage Tutorialcolumn to learn!
The above is the detailed content of What is the difference between apache and tomcat. For more information, please follow other related articles on the PHP Chinese website!