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.