Tuesday 28 January 2014

How to configure Oracle Weblogic server with Apache HTTP Server

Configuring Oracle Weblogic server with Apache HTTP Server (Web Server):

Ensure that you have already installed the Apache HTTP Server and it is in shutdown mode.

Download the WLS Web Server Proxy Plug-In for Apache HTTP Server from My Oracle Support (http://support.oracle.com).

The plugin package will be in the form of Zip file. For example for Windows 64 bit, it will be like 'WLSPlugin12c-64bit-Apache2.2-Apache2.4-win64-x86_64.zip'

Steps to Install and configure the Apache Http server plug-in:

1) Once you extract the plug-in file, set the weblogic-plugins-12.1.2/lib folder to the 'PATH' in Windows and 'LD_LIBRARY_PATH' in UNIX.
   Here you are setting the PATH to the weblogic plug-ins lib folder.

2) In the plug-in's extracted path, locate the lib/mod_wl.so, or lib\mod_wl.dll for windows.

3) Open the httpd.conf located in \\Apache2\conf folder (take a backup of this file).

4) Load the Apache HTTP Server plug-in module for Apache 2.2.x by adding the belowline. For Windows, specify the .dll file

   LoadModule weblogic_module /home/myhome/weblogic-plugins-12.1.2/lib/mod_wl.so (for Unix)

   LoadModule weblogic_module /home/myhome/weblogic-plugins-12.1.2/lib/mod_wl.dll (for Windows)

5) Configure the WebLogicHost and WebLogicPort parameters for non-clustered WebLogic Server. Add the IfModule as below in the httpd.conf file.
<IfModule mod_weblogic.c>
 WebLogicHost localhost
 WebLogicPort 7001
 DebugConfigInfo ON
</IfModule>
6) Configure the WebLogicCluster parameter for clustered WebLogic Servers. Add the IfModule as below in the httpd.conf file.
<IfModule mod_weblogic.c>
 WebLogicCluster localhost:7001,localhost1:w1s2.com:7001,localhost2:7001
</IfModule>
7) Now save the httpd.conf file and start the Apache http server, the plugin will be loaded to the server.

There are many other plug-in parameters, which we can configure based on our requirement.

No comments:

Post a Comment