Friday, October 17, 2008

Plug-in in Apache Web Server

Steps To Configure WLS Plug-in in Apache Web Server

  • Install Apache Web-Server.
  • Install WLS with the Plugin Option enabled.This option installs WLS with all the plugins files required for supported web-servers.
  • Refer BEA_HOME\weblogic92\server\plugin for plugin files.


  • Navigate to appropriate OS and copy the Apache plug-in files.
  • Plug-in file for Apache Server is mod_wl_20.so.
  • Paste the .so file in Apache Server’s modules folder (APACHEHOME\Apache2\modules).




  • The next is to edit the httpd.conf file of Apache and make entry for WLS plug-in(APACHEHOME \Apache2\conf).

  • The entries that should be made in http.conf file are:

(1)A LoadModule entry in Loadmodule specification.

LoadModule weblogic_module modules/mod_wl_20.so.


(2) specification in module configuration for cluster environment.

WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005

MatchExpression /*

WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005

Debug ALL

PathTrim /weblogic

127.0.0.1:7003,127.0.0.1:7005 is the cluster addresses to which the apache server redirects the request. The application is deployed on this cluster.



(3) specification in module configuration for single server.

WebLogicHost 127.0.0.1

WebLogicport 7001

MatchExpression /*

WebLogicHost 127.0.0.1

WebLogicport 7001

Debug ALL

PathTrim /weblogic

  • After completing these specification start the Apache server.
  • Start the WLS admin server and all managed servers participating in the cluster.
  • Open the browser and type the request URL to the application deployed in the cluster.For eg: http://localhost/CR
  • Where CR is the context root of the deployed application.

No comments: