什么情况下才有必要用 httpd 整合 tomcat

以下是官方文档:

Need for cooperation

As stated in the Tomcat User’s Guide, Tomcat currently supports three modes of execution.  While it is entirely possible to have Tomcat serve both your static and dynamic document provision needs, there are several reasons why you might  not want want to do this.  With respect to the Apache web server,

    1.    Tomcat is not as fast as Apache when it comes to static pages.

    2.    Tomcat is not as configurable as Apache.

    3.    Tomcat is not as robust as Apache.

    4.    Tomcat may not address many sites’ need for functionality found only in Apache modules (e.g. Perl, PHP, etc.).

For all these reasons it is recommended that real-world sites use an industrial-strength web server, such as Apache, for serving static content, and use Tomcat as a Servlet/JSP add-on.

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.