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:


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/"

<IfModule mod_weblogic.c>
WebLogicPort 7001

# Admin Server and EM
<Location /console>
SetHandler weblogic-handler
WeblogicPort 7001

<Location /consolehelp>
SetHandler weblogic-handler
WeblogicPort 7001

<Location /em>
SetHandler weblogic-handler
WeblogicPort 7001

#Oracle Directory Services Manager
<Location /odsm>
SetHandler weblogic-handler

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:
Oracle WebLogic Server Administration Console:
Oracle Enterprise Manager Fusion Middleware Control:

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 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.