3 Configure Oracle HTTP Server in front of Weblogic Server

This topic explains systematic instructions to configure Oracle HTTP Server in front of Weblogic Server.

In Oracle HTTP Server requests from Oracle HTTP Server to the Weblogic server are proxied using mod_wl_ohs module. This configuration file needs to be modified to include the Weblogic server and port details.

mod_wl_ohs.conf file is located at ${ORACLE_INSTANCE}/config/OHS/{COMPONENT_NAME}/mod_wl_ohs.conf.

  1. Add the below-mentioned directives to mod_wl_ohs.conf file.
    For WebLogic in single instance
    <Location /<<context/url>> >
    SetHandler weblogic-handler
    WebLogicHost <<server name>>
    WeblogicPort <<port>>
    </Location>
    For example,
    <Location /FCJNeoWeb>
    SetHandler weblogic-handler
    WebLogicHost wlserver1
    WeblogicPort 7707
    </Location>
    This will forward /FCJNeoWeb from HTTP server to /FCJNeoWeb on WebLogic Server wlserver1: 7707

    Figure 3-1 WebLogic in single instance



    For Weblogic instances in cluster
    <Location /<<context/url>> >
    SetHandler weblogic-handler
    WebLogicCluster <server1>:<port1>,<server2>:<port2>
    </Location>
    For example,
    <Location / FCJNeoWeb >
     SetHandler weblogic-handler
     WebLogicCluster wlserver1:7010, wlserver2:7010 
    </Location>
    This will forward /FCJNeoWeb from HTTP server to /FCJNeoWeb on WebLogic Cluster wlserver1:7010 and wlserver2:7010

    Figure 3-2 Weblogic instances in cluster