Oracle WebTier multiple OHS instances

4

It´s possible to map your Oracle WebTier environment to multiple servers that host applications like ADF, SOA Suite or UCM

This is the way how to do it:

To connect your WebTier to multiple WebLogic domains, create multiple OHS instances              

1.  Create the needed OHS instances: UCM, OSB, SOA & ADF

Set the ORACLE_HOME to your WebTier home (like /oracle/product/weblogic/Middleware/Oracle_WT)

$ORACLE_HOME/bin/config.sh

-       Click Next 

-       Only configure Oracle HTTP Server 

-      Fill in the name for the instance direcry and instance  like wt_<purpose>_<product>( wt_dev_osb1) 

-       Choose Auto port Configuration

-       Uncheck email 

-       Click Configure 

-       Do the same for for all your environments you want to route through WebTier

-       Then configure per instance the mod_wl_ohs configuratie 

-      Start each create OHS instance ( don´t forget to set the ORACLE_INSTANCE variable, like export ORACLE_INSTANCE=$ORACLE_HOME/instances/wt_ont_ucm1

2.  Configure the mod_wl_ohs.conf per instance. Here´s an example for UCM. For OSB, SOA Suite you will need to create other mappings ofcourse

Example: UCM

# NOTE : This is a template to configure mod_weblogic. 

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

# This empty block is needed to save mod_wl related configuration from EM to this file when changes are made at the Base Virtual Host Level

<IfModule weblogic_module>

#      WebLogicHost <WEBLOGIC_HOST>

#      WebLogicPort <WEBLOGIC_PORT>

#      Debug ON

#      WLLogFile /tmp/weblogic.log

#      MatchExpression *.jsp

</IfModule>

 

# <Location /weblogic>

#      SetHandler weblogic-handler

#      PathTrim /weblogic

#      ErrorPage  http:/WEBLOGIC_HOME:WEBLOGIC_PORT/

#  </Location>

 

                <Location /cs>

                    SetHandler weblogic-handler

                    WebLogicHost <target WebLogic host>

                    WebLogicPort <portnumber>(for UCM it is 16200)

                    WLCookieName IDCCS_SESSIONID

                </Location>

                 <Location /_dav>

                    SetHandler weblogic-handler

                    WebLogicHost <target WebLogic host>

                   WebLogicPort 16200           

                    WLCookieName IDCCS_SESSIONID

                </Location>

Restart OHS for each instance separate : $ORACLE_HOME/opmn/bin/restartproc process-type=ohs ( set the correct instance each time)

Now you can try and test.

Environment Test URL WebTier
UCM http://<webtier_host>:7777/cs
OSB http://<webtier_host>:7777/sbconsole
SOA http://<webtier_host>:7779/soa-infra
ADF http://<webtier_host>:7780/

 

Share.

About Author

Started in pharmacy, I made the change to IT in 1996. I am an Oracle Fusion Middleware Architect at AMIS, with focus on technical infrastructure, Serverside solutions, installing, administering, configuring the Oracle Fusion Middleware stack. My experience is from integrations at telco´s using Oracle AIA, Oracle Portal, OID, Forms&Reports, Discoverer upto the latest Oracle WebLogic 11g releases with practically all Oracle products running on top of it

4 Comments

  1. Michel Schildmeijer on

    Hi Ali
    You must ensure you choose the OHS WebTier Standalone installation.
    Therefore, during installation, you must choose Install only, so the option ” Install Software – Do Not Configure” In this case you only install the software.
    When you’re finished, run the configure script from the WebTier Home( the folder where you installed your software). During configure you can choose to create a new WebLogic domain or to connect to an existing WebLogic Domain. You should choose to connect to the existing one, and then you will get prompted to fill in host, weblogic admin user, password and port of your WebLogic domain on your other host.
    After this, you not finished yet, then you should configure routing between your WebLogic Domain and OHS using the mod_wl_ohs module from Apache.
    Hope this helps
    Kind regards
     
    Michel

  2. Hi,
    Need your help , Im installing ohs with webgate to integrate with peoplesoft, and im confused in OHS installation, that we have our weblogic server (Host A) and (ohs)oracle http server(Host B) mean both are on different nodes, so when we install our ohs server  it is asking for entering middleware_home (which is in on our case is weblogic server known as host A)
    so do i mention it ip/middleware_home for it or not, plus it is on windows environment.

  3. Michel Schildmeijer on

    Hi Jacco
    1) Depends on several things. VIP only is not enough; especially when you want to connect outside your network and dont want any trace to you local machines, you use an extra layer where you place this ( or another ) Apache like  solution.
    2) Of course, you are absolutely right. This post is just to make clear how the idea works
    But I would seperate in on the instance level and not on the component level. In this case you have separate instance configurations all controlled separate by opmn
    So opmnctl createinstance with the neccesary parameters.

  4. I have 2 questions.
    1) wouldn’t virtualhosting solve this issue much easier? (either name of ip based)
    2) if you really have to setup different apaches, wouldn’t opmnctl createcomponent -componentName $name_of_http_server -componentType OHS (and then some more parameters, you can read docs too :) ) do the trick just as easy?