This document is provided as a guideline for migrating the Weblogic Proxy Plugin configuration from Oracle iPlanet Web Server (iWS), 6.1.x and 7.0.x, to Oracle HTTP Server 11g (OHS). 

iPlanet 6.1.x and 7.0.x Configuration

The configuration for the Weblogic Proxy Plugin is contained in two files within iWS.

1] The plugin is loaded in the Web Server magnus.conf file (/<Server_Root>/<instance>/config/magnus.conf).
Init fn="load-modules" shlib="/<path_to>/mod_wl.so"
2] Requests can be processed in two ways in the obj.conf file (/<Server_Root>/<instance>/config/obj.conf), either by URL or by MIME type. Both the PathTrim and PathPrepend directives are optional and may not be present.
Example proxy by URL:
<Object ppath="*/weblogic/*">>
Service fn=wl-proxy WebLogicHost=backend.uk.oracle.com WebLogicPort=1234 PathTrim="/weblogic"
</Object>
Example proxy by MIME type:
Service method="(GET|HEAD|POST|PUT)" type=text/jsp fn=wl-proxy WebLogicHost=backend.uk.oracle.com WebLogicPort=1234 PathPrepend=/jspfiles

Note - with iWS 7.0 the obj.conf file may be prepended with the name of the Virtual Server - <vs>-obj.conf. The correct obj.conf file can be found in the <object-file> tag of the server.xml file for each Virtual Server.

OHS 11g Configuration

The configuration for OHS should be in the directory $ORACLE_INSTANCE/config/OHS/ohs1 for an initial install. The instance name, ohs1, may be different if there are multiple instances installed.

OHS installs the Weblogic module by default. The main OHS configuration file, httpd.conf, should already have an entry to include the configuration file for the module:
# Include the configuration files needed for mod_weblogic
include "${ORACLE_INSTANCE}/config/${COMPONENT_TYPE}/${COMPONENT_NAME}/mod_wl_ohs.conf"
The mod_wl_ohs.conf file should already exist, and will contain commented sample entries, but will have nothing actually configured initially.

The documentation for the Weblogic module provides clear details on how to configure it.

Following the configuration of the Weblogic module, the URL example from the iWS configuration above would be:
<IfModule weblogic_module>

<Location /weblogic>
SetHandler weblogic-handler
WebLogicHost backend.uk.oracle.com
WeblogicPort 1234
PathTrim /weblogic
</Location>

</IfModule>
The MIME type example would be:



<IfModule weblogic_module>

WebLogicHost backend.uk.oracle.com
WeblogicPort 1234
MatchExpression *.jsp
PathPrepend /jspfiles

</IfModule>

0 Comments