Skip to content

Configuring Webcenter with Proxy HTTP Server and SSO

August 27, 2010

This Post will deal with configuring Oracle Single Sign on (SSO) with Webcenter suite

Prerequisites

You should have already installed

1. Oracle HTTP server 2.0

2.  Oracle Webcenter Suite 11.1.1.3

3. Oracle SSO 10.1.2 or 10.1.4

Here I installed Oracle HTTP Server on linux2, Webcenter Suite on linux1.

I am going to use below configuration

Ports

Server Name Context
Root
Weblogic
Port
HTTP Server
Port
Admin Server /console, /em 7001 7777
WLS_Spaces /webcenter 8888 7778
WLS_Portlet /richtextportlet, wsrp-tools, portal-tools 8889 7779
WLS_Services /owc_discussions, /owc_wiki 8890 7780

URL’s for accessing Webcenter directly through weblogic server port

Webcenter Spaces http://linux1.com:8888/webcenter
WebCenter Rich Text Portlet http://linux1.com:8889/richtextportlet/
WebCenter WSRP Tools http://linux1.com:8889/wsrp-tools/
WebCenter OmniPortlet and Web Clipping Portlets http://linux1.com:8889/portalTools/
WebCenter Discussions http://linux1.com:8890/owc_discussions
WebCenter Wiki and Blog Server http://linux1.com:8890/owc_wiki
Console http://linux1.com:7001/console
em http://linux1.com:7001/em

URL’s for accessing Webcenter  through HTTP server port

Webcenter Spaces http://linux2.com:7778/webcenter
WebCenter Rich Text Portlet http://linux2.com:7779/richtextportlet/
WebCenter WSRP Tools http://linux2.com:7779/wsrp-tools/
WebCenter OmniPortlet and Web Clipping Portlets http://linux2.com:7779/portalTools/
WebCenter Discussions http://linux2.com:7780/owc_discussions
WebCenter Wiki and Blog Server http://linux2.com:7780/owc_wiki
Console http://linux2.com:7777/console
em http://linux2.com:777/em

Step 1. Download and Configure MOD_WEBLOGIC

a. Download MOD_WEBLOGIC from http://download.oracle.com/otn/bea/weblogic/server103/server103_apacheplugins.zip.

b. extract the corresponding platform  mod_wl_20.so. Copy it to $ORACLE_HOME/ohs/modules.

c. Edit $ORACLE_HOME/ohs/conf/httpd.conf and add the following line under the last LoadModule directive: LoadModule weblogic_module modules/mod_wl_20.so

Step 2. Configuring Webcenter suite with OID.

Check Configure OSSO Identity Asserter section from

Step 3.  Registering HTTP server URL’s  with SSO server.

Ex.

$ORACLE_HOME/sso/bin/ssoreg.sh -oracle_home_path $ORACLE_HOME -site_name linux2.com -config_mod_osso TRUE -mod_osso_url http://linux2.com:7777 -remote_midtier -config_file $ORACLE_HOME/Apache/Apache/conf/osso/console_osso.conf -verbose TRUE

OSSO Configuration
Files
Spaces spaces_osso.conf
Portlet portlet_osso.conf
Services services_osso.conf
Console console_osso.conf

b.  Move the above generated configuration files to the server where HTTP server is running ie linux2 $ORACLE_HOME/ohs/conf/osso

Step 4.  Build Virtual Host in httpd.conf  located  $ORACLE_HOME/ohs/conf

Creating Virtual Host involves 1. Creating Includes files in httpd.conf  2. Adding Weblogic & OSSO directives

I created four Include files . Add below lines in httpd.conf

1. Spaces ———-$ORACLE_HOME/ohs/conf/wcspaces.conf

2. Portlet———-$ORACLE_HOME/ohs/conf/wcportlet.conf

3. Services——–$ORACLE_HOME/ohs/conf/wcservices.conf

4. Console———$ORACLE_HOME/ohs/conf/wcconsole.conf

$ORACLE_HOME/ohs/conf/wcspaces.conf
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
VirtualHost *:7778>
ServerName linux2.com
<IfModule mod_weblogic.c>
WebLogicHost linux1
WebLogicPort 8888
<Location /webcenter>
SetHandler weblogic-handler
</Location>
</IfModule>

LoadModule osso_module modules/mod_osso.so

<IfModule mod_osso.c>

OssoIdleTimeout on
OssoIpCheck off
#OssoRedirectByForm off
#OssoSecureCookies on
#OssoProtectedOnly on
#OssoSecureCookies on
#OssoSendCacheHeaders on
OssoSendCacheHeaders off
#OssoHttpsFrontend on
#UseWebCacheIp on
OssoConfigFile /u01/ohs/ohs/conf/osso/spaces_osso.conf

<Location /webcenter>
require valid-user
AuthType Basic
</Location>

<Location /private>
require valid-user
AuthType Basic
</Location>

</IfModule>

#
# If you would like to have short hostnames redirected to
# fully qualified hostnames to allow clients that need
# authentication via mod_osso to be able to enter short
# hostnames into their browsers uncomment out the following
# lines
#
#PerlModule Apache::ShortHostnameRedirect
#PerlHeaderParserHandler Apache::ShortHostnameRedirect

</VirtualHost>

$ORACLE_HOME/ohs/conf/wcportlet.conf
==============================================
<VirtualHost *:7779>
ServerName linux2.com
<IfModule mod_weblogic.c>
WebLogicHost linux1.com
WebLogicPort 8889
<Location /richtextportlet>
SetHandler weblogic-handler
</Location>
<Location /wsrp-tools>
SetHandler weblogic-handler
</Location>
<Location /portalTools>
SetHandler weblogic-handler
</Location>
</IfModule>

LoadModule osso_module modules/mod_osso.so

<IfModule mod_osso.c>

OssoIdleTimeout on
OssoIpCheck off
#OssoRedirectByForm off
#OssoSecureCookies on
#OssoProtectedOnly on
#OssoSecureCookies on
#OssoSendCacheHeaders on
OssoSendCacheHeaders off
#OssoHttpsFrontend on
#UseWebCacheIp on
OssoConfigFile /u01/ohs/ohs/conf/osso/portlet_osso.conf

<Location /richtextportlet>
Require valid-user
AuthType Basic
</Location>

<Location /wsrp-tools>
Require valid-user
AuthType Basic
</Location>
<Location /portalTools>
Require valid-user
AuthType Basic
</Location>

<Location /private>
require valid-user
AuthType Basic
</Location>

</IfModule>

#
# If you would like to have short hostnames redirected to
# fully qualified hostnames to allow clients that need
# authentication via mod_osso to be able to enter short
# hostnames into their browsers uncomment out the following
# lines
#
#PerlModule Apache::ShortHostnameRedirect
#PerlHeaderParserHandler Apache::ShortHostnameRedirect

</VirtualHost>

$ORACLE_HOME/ohs/conf/wcservices.conf
===================================================================
<VirtualHost *:7780>
ServerName linux2.com
<IfModule mod_weblogic.c>
WebLogicHost linux1.com
WebLogicPort 8890
<Location /owc_discussions>
SetHandler weblogic-handler
</Location>
<Location /owc_discussions>
SetHandler weblogic-handler
</Location>
</IfModule>

LoadModule osso_module modules/mod_osso.so

<IfModule mod_osso.c>

OssoIdleTimeout on
OssoIpCheck off
#OssoRedirectByForm off
#OssoSecureCookies on
#OssoProtectedOnly on
#OssoSecureCookies on
#OssoSendCacheHeaders on
OssoSendCacheHeaders off
#OssoHttpsFrontend on
#UseWebCacheIp on
OssoConfigFile /u01/ohs/ohs/conf/osso/services_osso.conf

<Location /owc_discussions>
Require valid-user
AuthType Basic
</Location>

<Location /owc_discussions>
Require valid-user
AuthType Basic
</Location>

<Location /private>
require valid-user
AuthType Basic
</Location>

</IfModule>

#
# If you would like to have short hostnames redirected to
# fully qualified hostnames to allow clients that need
# authentication via mod_osso to be able to enter short
# hostnames into their browsers uncomment out the following
# lines
#
#PerlModule Apache::ShortHostnameRedirect
#PerlHeaderParserHandler Apache::ShortHostnameRedirect

</VirtualHost>

$ORACLE_HOME/ohs/conf/wcconsole.conf
====================================
<VirtualHost *:7777>
ServerName linux2.com
<IfModule mod_weblogic.c>
WebLogicHost linux1.com
WebLogicPort 7001
<Location /console>
SetHandler weblogic-handler
</Location>
<Location /em>
SetHandler weblogic-handler
</Location>
</IfModule>

LoadModule osso_module modules/mod_osso.so

<IfModule mod_osso.c>

OssoIdleTimeout on
OssoIpCheck off
#OssoRedirectByForm off
#OssoSecureCookies on
#OssoProtectedOnly on
#OssoSecureCookies on
#OssoSendCacheHeaders on
OssoSendCacheHeaders off
#OssoHttpsFrontend on
#UseWebCacheIp on
OssoConfigFile /u01/ohs/ohs/conf/osso/console_osso.conf

<Location /console>
Require valid-user
AuthType Basic
</Location>

<Location /em>
Require valid-user
AuthType Basic
</Location>

<Location /private>
require valid-user
AuthType Basic
</Location>

</IfModule>

#
# If you would like to have short hostnames redirected to
# fully qualified hostnames to allow clients that need
# authentication via mod_osso to be able to enter short
# hostnames into their browsers uncomment out the following
# lines
#
#PerlModule Apache::ShortHostnameRedirect
#PerlHeaderParserHandler Apache::ShortHostnameRedirect

</VirtualHost>

Step 5. Optionally you can configure filter in webcenter domain.

Related Links

1. Oracle Webcenter Installation

2.  Cluster Webcenter across physical machines

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s