2

I've read previous posts like "Redirecting https requests to two different weblogic servers using the Weblogic proxy and Apache2". But I have a different situation and I don't think I'm understanding this to well. I have an Apache 2 server (server1) that will receive http request for my application. Then I have two more servers (server2 and server3) with Web Logic 9.2 runing on ports 7000 (server1) and 8000 (server2). I want the users to enter appname.domain.com and be redirected between the two web logic servers, always keeping appname.domain.com (this is hidding servername:port from URL). How can I manage to do that?

Thanks in advance!

Jhon.

4

2 回答 2

1

使用 BEA/Oracle 提供的Apache HTTP Server 插件来对您的应用程序的请求进行前端和负载平衡。

我会在这里使用虚拟主机,如下所示:

<VirtualHost xxx.xxx.xxx.xxx:80>
    DocumentRoot "C:/test/VirtualHost1"
    ServerName appname.domain.com   
    <IfModule mod_weblogic.c> 
    #... WLS parameter ...
    WebLogicCluster 192.168.1.100:7000,192.168.1.200:8000
    # Example: MatchExpression *.jsp <some additional parameter>
    MatchExpression *.jsp PathPrepend=/test
    </IfModule>
</VirtualHost>

此配置应平衡对http://appname.domain.com/http://192.168.1.100:7000/testhttp://192.168.1.200:8000/test的请求。

所有详细信息请参阅官方文档:

于 2010-04-12T04:19:30.767 回答
0

在 Orcle 的情况下,在 HHTp 服务器上安装一个 Webgate,它将执行反向代理并隐藏服务器名称。

于 2010-04-13T05:46:16.020 回答