mod_wl_ohs.conf example set up | Weblogic

Oracle Weblogic Server

 

Set up OHS in front of WebLogic Server “http://<OHS host>:<OHS port>/console”

To configure mod_wl_ohs.conf properly please follow below steps
1. In Admin Console make sure you have checked “WebLogic Plugin Enabled” under Domain => WebApplications
2. Configure mod_wl_ohs for Oracle WebLogic Server Clusters

To enable the Oracle HTTP Server instances to route to applications deployed on the Oracle WebLogic Server clusters, add the directives shown below to the mod_wl_ohs.conf file on both WEBHOST1 and WEBHOST2.

The mod_wl_ohs.conf file is located under the following directory on WEBHOST1 and WEBHOST2:

ORACLE_INSTANCE/config/OHS/componentName

In a text editor, add the following lines to the mod_wl_ohs.conf file on WEBHOST1 and WEBHOST2:

Configure mod_wl_ohs.conf as below:

LoadModule weblogic_module "${ORACLE_HOME}/ohs/modules/mod_wl_ohs.so"

<IfModule mod_weblogic.c>
WebLogicHost idmhost1.mycompany.com
WebLogicPort 7001
</IfModule>

# Admin Server and EM
<Location /console>
SetHandler weblogic-handler
WebLogicHost idmhost1.mycompany.com
WeblogicPort 7001
</Location>

<Location /consolehelp>
SetHandler weblogic-handler
WebLogicHost idmhost1.mycompany.com
WeblogicPort 7001
</Location>

<Location /em>
SetHandler weblogic-handler
WebLogicHost idmhost1.mycompany.com
WeblogicPort 7001
</Location>

#Oracle Directory Services Manager
<Location /odsm>
SetHandler weblogic-handler
WebLogicCluster idmhost1.mycompany.com:7006,idmhost2.mycompany.com:7006
</Location>

Restart Oracle HTTP Server:

ORACLE_INSTANCE/bin/opmnctl restartproc ias-component=ohs1
Verify that you can access all these URLs:

Oracle Directory Services Manager Console:

http://admin.mycompany.com:7777/odsm
Oracle WebLogic Server Administration Console:

http://admin.mycompany.com:7777/console
Oracle Enterprise Manager Fusion Middleware Control:

http://admin.mycompany.com:7777/em

The servers specified in the WebLogicCluster parameter are only important at startup time for the plug-in. The list needs to provide at least one running cluster member for the plug-in to discover other members of the cluster. Note that the listed cluster member must be running when the Oracle HTTP Server is started up. Oracle WebLogic Server and the plug-in work together to update the server list automatically with new, failed, and recovered cluster members.

 

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

1 Response

  1. faris says:

    how to can access http://192.168.100.24:8004/faces/Login_Page.jspx no cluster im manage server ms1 what can i put in mod_wl_ohs.conf file ?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.