Redirecting an HTTP request to two different web logical servers using the Weblogic and Apache2 proxy
I have read previous posts like "Redirecting https requests to two different web logical servers using Weblogic and Apache2 proxy". But my situation is different and I don't think I understand it well. I have an Apache 2 server (server1) that will receive an HTTP request for my application. Then I have two more servers (server2 and server3) running Web Logic 9.2 on ports 7000 (server1) and 8000 (server2). I want 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 do this?
Thanks in advance!
Jhon.
source to share
Use the Apache HTTP Server plugin provided by BEA / Oracle to query the front and load balance into your application.
I would use a virtual host here, something like this:
<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>
This configuration should balance requests from http://appname.domain.com/ to http://192.168.1.100:7000/test and http://192.168.1.200:8000/test .
Refer to the official documentation for all details:
source to share