Monday, 18 November 2013

OHS - Setting up OHS for Webcenter

Setting up OHS for Webcenter

So your task is simple, setting up OHS for Webcenter?

There is a bit of yes hopefully some more yes.

Firstly, we need to decide whether we are going to use EM or Edit the files directly and are we going to create a virtual host.

My answer to that Question is we can do either, with regards to EM and editing the Files.
With Virtual Hosts, not so much.

If you are going to use EM, I am going to show the Advanced way of adding Webcenter to the OHS install.

When logged into EM, navigate to the OHS install, under the Web Tire Menu on the Left.

Once clicked on there, go to the Menu, Administration, Advanced Configuration.

EM - OHS - Advanced Menu
Edit the mod_wl_ohs_conf file
Advanced Option
Or you can simply navigate to the file which should be stored "WT_ORACLE_HOME/instances/<your_instance>/config/OHS/ohs1/" or equivalent.

(LINUX) You can find the file in linux by typing in terminal -> find -iname mod_wl_ohs.conf

You're file should start with something like this:
# 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


Under the:
<IfModule weblogic_module>

You should add something to the effect of this:
<Location /webcenter>
  SetHandler weblogic-handler
  WebLogicHost 192.168.0.34
  WebLogicPort 8888
 </Location>
</IfModule>
<Location /webcenterhelp>
  SetHandler weblogic-handler
  WebLogicHost 192.168.0.34
  WebLogicPort 8888
 </Location>
 
 <Location /rss>
  SetHandler weblogic-handler
  WebLogicHost 192.168.0.34
  WebLogicPort 8888
 </Location>
 
 <Location /rest>
  SetHandler weblogic-handler
  WebLogicHost 192.168.0.34
  WebLogicPort 8888
 </Location>
 
 <Location /owc_discussions>
  SetHandler weblogic-handler
  WebLogicHost 192.168.0.34
  WebLogicPort 8890
 </Location>
 
 <Location /activitygraph-engines>
  SetHandler weblogic-handler
  WebLogicHost 192.168.0.34
  WebLogicPort 8891
 </Location>
 
 <Location /wcps>
  SetHandler weblogic-handler
  WebLogicHost 192.168.0.34
  WebLogicPort 8891
 </Location>

The format for this should look something like:
<Location /{path}>
  SetHandler weblogic-handler
  WebLogicHost {Hostname or IP}
  WebLogicPort {port}
 </Location>

#bearMan