何时使用Apache与Apache + Tomcat? [英] When to Use Apache vs. Apache+Tomcat?

查看:58
本文介绍了何时使用Apache与Apache + Tomcat?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于仅使用Apache就足以运行许多Web应用程序,所以人们何时以及为什么除了Apache之外还使用Tomcat?

Since simply using Apache can be enough to run many Web applications, when and why do people also use Tomcat in addition to Apache?

推荐答案

Apache Tomcat 是Web服务器和Java Servlet一个容器中,而 Apache HTTPD 只是一个普通的Web服务器(通常仅支持PHP).他们希望能够运行Java/JSP/Servlet时使用Apache Tomcat.可以将其添加到现有的Apache HTTPD/PHP设置中.或者反过来,当将Tomcat关闭以进行某些升级/维护时,他们将Apache HTTPD置于Apache Tomcat的前面,从而能够拥有此站点正在维护"页面.

Apache Tomcat is a webserver and Java servlet container in one, while Apache HTTPD is just a plain webserver (often with only PHP support). They use Apache Tomcat when they want be able to run Java/JSP/Servlet. It can be added to an existing Apache HTTPD / PHP setup. Or the other way round, they bring Apache HTTPD in front of Apache Tomcat to be able to have a "This site is in maintenance" page when Tomcat is been shutdown for some upgrade/maintenance.

对于Apache HTTPD和Apache Tomcat之间的通信,通常使用 Tomcat连接器.也称为 mod_jk .

For communication between Apache HTTPD and Apache Tomcat, the Tomcat Connector is usually been used. It's also known as mod_jk.

这篇关于何时使用Apache与Apache + Tomcat?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆