使用 apache 2.x 前置 Weblogic 9.2 的最简单方法
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/189985/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Easiest way to front Weblogic 9.2 with apache 2.x
提问by anjanb
I want to put Apache 2.2.9 in front of a Weblogic 9.2 server on Windows XP. What does it take to do that ?
我想将 Apache 2.2.9 放在 Windows XP 上的 Weblogic 9.2 服务器前面。这样做需要什么?
I probably need mod_proxy on the apache side ?
我可能需要在 apache 端使用 mod_proxy 吗?
As far as Weblogic and apache are concerned, is there something similar to mod_jk ?
就 Weblogic 和 apache 而言,是否有类似于 mod_jk 的东西?
I would like this setup so that I can introduce some filtering later on. But for now, the goal is to allow other computers to access weblogic appserver so that Apache forwards all requests coming to it (at a certain URL) to Weblogic.
我想要这个设置,以便我稍后可以引入一些过滤。但就目前而言,目标是允许其他计算机访问 weblogic appserver,以便 Apache 将所有请求转发到它(在某个 URL)到 Weblogic。
I have done this several times earlier BUT have forgotten how I did it.
我之前做过几次,但忘记了我是怎么做的。
Thanks for any pointers,
感谢您的任何指点,
I guess http://e-docs.bea.com/wls/docs81/plugins/apache.htmlanswers most of the basic fundas. Will update the forum if I have more inputs.
我猜http://e-docs.bea.com/wls/docs81/plugins/apache.html回答了大多数基本基础知识。如果我有更多意见,将更新论坛。
回答by Pascal Thivent
The right way to do this is to use the Apache HTTP Server plug-inprovided by BEA/Oracle and bundled with Weblogic.
正确的做法是使用BEA/Oracle 提供并与 Weblogic 捆绑的Apache HTTP Server 插件。
For details, refer to the legacy BEA WebLogic Server 9.2 Documentationand more precisely to:
有关详细信息,请参阅旧版BEA WebLogic Server 9.2 文档,更准确地说,请参阅:
Note: These links are the up to date links since http://edocs.bea.com/is now down.
注意:这些链接是最新的链接,因为http://edocs.bea.com/现已关闭。
回答by Ujjwal
Agree with Pascal about the weblogic plugin --that is the preffred one, I can still list two choices for you
同意 Pascal 关于 weblogic 插件的看法——这是首选的插件,我仍然可以为你列出两个选择
1> Apache Plugin for weblogic:
1> 用于 weblogic 的 Apache 插件:
this not only forwards request to weblogic from Apache, but can also act as HTTP load balancer for your weblogic setup.
这不仅将请求从 Apache 转发到 weblogic,还可以充当 weblogic 设置的 HTTP 负载平衡器。
update httpd.conf to load weblogic_module --> mod_wl_20.so
<IfModule mod_weblogic.c>
WebLogicCluster w1s1.com:7001,w1s2.com:7001,w1s3.com:7001
MatchExpression *.jsp
MatchExpression *.xyz
</IfModule>
2> Apache Proxy pass
2> Apache Proxy pass
if you are looking for simple redirect from Apache use this
如果您正在寻找来自 Apache 的简单重定向,请使用它
update httpd.conf to load proxy_module --> mod_proxy.so
<Location /service>
ProxyPass http://wls1.com:7001/service
ProxyPassReverse http://wls1.com:7001/service
</Location>
use which ever suit your need
使用哪个适合您的需要
回答by Mark Sailes
We used the WebLogic plugin to load balance and front our applicatiosn, using virtual hosts and locations.
我们使用 WebLogic 插件来负载平衡和前端我们的应用程序,使用虚拟主机和位置。
For example:
例如:
ServerName www.domain.com
服务器名称 www.domain.com
WebLogicCluster 10.20.30.41:7002,10.20.30.42:7002 SetHandler weblogic-handler
WebLogicCluster 10.20.30.41:7002,10.20.30.42:7002 SetHandler weblogic-handler
This config will balance requests to http://www.domain.com/PathToApplicationto 10.20.30.41:7002 and 10.20.30.42:7002.
此配置将平衡对http://www.domain.com/PathToApplication 的请求 到 10.20.30.41:7002 和 10.20.30.42:7002。

