Configuring weblogic proxy plugin for two different WLS domains | Weblogic

Oracle Weblogic Server

There are many ways to do it, I prefer one- changing the access port and two- changing the context path.

The solution for this is to set each server to use different Context path (under domain configuration in the console, Configuration->General->Advanced->Console Context Path).

Apache:
IP: 10.23.112.5
Port: 80

Config

<Location /Admin1>
SetHandler weblogic-handler
WebLogicCluster 10.23.112.6:7001
</Location>

<Location /Admin2>
SetHandler weblogic-handler
WebLogicCluster 10.23.112.7:7001
</Location>/

AdminServer 1
IP: 10.23.112.6
Port:7001
Console Context Path:Admin1/console

AdminServer 2
IP:10.23.112.7
Port:7001
Console Context Path:Admin2/console

Now, if you try to reach Admin console 1, you should use:
http://10.23.112.5/Admin1/console

To the second one:
http://10.23.112.5/Admin2/console
2nd solution:

If you don’t want to modify the context path of the domains, set different ports and configure them using virtualhost in your APACHE configuration.

Example:

Apache:
IP: 10.23.112.5

Listen 80
Listen 81

<VirtualHost *:80>
<IfModule mod_weblogic.c>
SetHandler weblogic-handler
WebLogicCluster 10.23.112.6:7001
</IfModule>
</VirtualHost>

<VirtualHost *:81>
<IfModule mod_weblogic.c>
SetHandler weblogic-handler
WebLogicCluster 10.23.112.7:7001
</IfModule>
</VirtualHost>/

So, if you want to reach Admin Console 1, you should use:
http://10.23.112.5/console

To reach Admin Console 2:
http://10.23.112.5:81/console

In case of any ┬ęCopyright or missing credits issue please check CopyRights page for faster resolutions.

Leave a Reply