configure WebTier OHS

6
Configure WebTier OHS for Redirect Osama Mustafa Page 1 After I wrote about oracle webTier Installation, I will share in this document how to configure OHS to redirect request to specific server. Oracle WebTier Overview Here Oracle WebTier Download Here. The Installation Path: /u01/app/fmw/Oracle_WT1 Instance Path: /u01/app/fmw/admin/

description

configure WebTier OHS

Transcript of configure WebTier OHS

Page 1: configure WebTier OHS

Configure WebTier OHS for Redirect

Osama Mustafa Page 1

After I wrote about oracle webTier Installation, I will share in this document how to configure OHS to

redirect request to specific server.

Oracle WebTier Overview Here

Oracle WebTier Download Here.

The Installation Path: /u01/app/fmw/Oracle_WT1

Instance Path: /u01/app/fmw/admin/

Page 2: configure WebTier OHS

Configure WebTier OHS for Redirect

Osama Mustafa Page 2

About the Author

Osama Mustafa – Oracle ACE, a database specialist, Certified Oracle Professional (10g, 11g),

Certified Ethical hacker (Penetration testing), and Sun System Administrator, author of book

Oracle Penetration Testing. Publishes many articles, including Oracle database articles in his

blog,Fusion Middle Ware and Oracle RAC Documentation, Including to this he is Active

Member On Oracle OTN and other Groups.

Twitter: @OsamaOracle.

G+: Osama Mustafa.

Slid-Share: Osama Mustafa.

LinkedIn: http://www.linkedin.com/in/osamamustafa.

Blog: http://osamamustafa.blogpsot.com.

Page 3: configure WebTier OHS

Configure WebTier OHS for Redirect

Osama Mustafa Page 3

Section how WebTier Server will look like:

Shutdown All OHS Services Using opmnctl command

cd /u01/app/fmw/admin/ohs1/bin

./opmnctl stopall

Add new server entire inside mod_wl_ohs.conf

cd /u01/app/fmw/admin/ohs1/config/OHS/ohs1/

vi mod_wl_ohs.conf

Page 4: configure WebTier OHS

Configure WebTier OHS for Redirect

Osama Mustafa Page 4

mod_wl_ohs.conf example:

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

# <Location > # SetHandler weblogic-handler # WebLogicHost # WeblogicPort #</Location> </IfModule>

Don’t Remove Anything

Copy Location tag and paste below

<Location /console> SetHandler weblogic-handler WebLogicHost Server-IP WeblogicPort Port for Server components </Location>

Server IP: should be IP for the server that contains products.

Server components: for example default port for weblogic 7001 you should add it.

Page 5: configure WebTier OHS

Configure WebTier OHS for Redirect

Osama Mustafa Page 5

Finally the mod_wl_ohs.conf will look like :

<IfModule weblogic_module>

<Location /console> SetHandler weblogic-handler WebLogicHost 192.168.1.100 WeblogicPort 7001 </Location>

<Location /b2bconsole> SetHandler weblogic-handler WebLogicHost 192.168.1.101 WeblogicPort 8003 </Location>

<Location /odiconsole> SetHandler weblogic-handler WebLogicHost 192.168.1.103 WeblogicPort 8001 </Location>

<Location /b2b> SetHandler weblogic-handler WebLogicHost 192.168.1.104 WeblogicPort 8001 </Location>

<Location /OracleBAM> SetHandler weblogic-handler WebLogicHost 192.168.1.105 WeblogicPort 9001 </Location>

Page 6: configure WebTier OHS

Configure WebTier OHS for Redirect

Osama Mustafa Page 6

<Location /edq> SetHandler weblogic-handler WebLogicHost 192.168.1.106 WeblogicPort 8001 </Location> </IfModule>

Please note if you have Weblogic Cluster the Location tag will be change to look like the below :

<Location /console> SetHandler weblogic-handler WebLogicCluster serverip:7001,serverip:7001 </location> Thank you

Osama Mustafa