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