Oracle WebTier multiple OHS instances

Michel Schildmeijer 4
0 0
Read Time:3 Minute, 38 Second

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)


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

# 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



# <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 /_dav>

                    SetHandler weblogic-handler

                    WebLogicHost <target WebLogic host>

                   WebLogicPort 16200           

                    WLCookieName IDCCS_SESSIONID


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.

EnvironmentTest URL WebTier


About Post Author

Michel Schildmeijer

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
0 %
0 %
0 %
0 %
0 %
0 %

Average Rating

5 Star
4 Star
3 Star
2 Star
1 Star

4 thoughts on “Oracle WebTier multiple OHS instances

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

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

Comments are closed.

Next Post

Publications written in 2010

Name Oracle Fusion Applications – de nieuwe standaard in applicaties?, AppWorks, december 2010 date 2nd December 2010 Click IntroductieVanOracleFusionApplications_AppWorks_Dec2010.pdf for this article. Name Masterclass Leveraging the Oracle Database in Java Applications, december 2010 date 17th December 2010 Click to download the sources for the demos for this masterclass. Name Java ontwikkelaars: zet de […]
%d bloggers like this: