How to configure Apache plug-in with Weblogic10.3

Assume that you have downloaded and installed weblogic server. You want to install apache plug-in so that you can avoid port number when accessing the deployed applications.

The steps given below should work for apache 2.x.

Here we go:

1. Download the apache server plug in for weblogic from http://download.oracle.com/otn/bea/weblogic/server103/WLSWebServerPlugins1.0.1150354-Apache.zip

2. Extract the zip file into your hard disk.

3. Make sure you have necessary modules in the extracted zip folder.
For eg: mod_wl_220.so under windows folder

4. Verify that plug-in mod_so.c is enabled by typing the following command.
$APACHE_HOME \bin\apachetl –l (Unix/linux)
Or
$APACHE_HOME \bin\httpd –l (windows)

Where APACHE_HOME is the directory containing your Apache HTTP Server installation.
This lists all enabled modules. If mod_so.c is not listed, you must rebuild apache server to have it enabled.

5. Install the Apache HTTP Server Plug-In module for Apache 2.0.x by copying the mod_wl_22.so file to the $APACHE_HOME\modules directory.

6. Add the following line to your APACHE_HOME/conf/httpd.conf file manually:
LoadModule weblogic_module modules/mod_wl_22.so

7. Modify the ServerName as your machine ip address.

8. Add the following lines:
    <IfModule mod_weblogic.c>
      WebLogicHost ip_address
      WebLogicPort 7001
      MatchExpression *.jsp
      Debug ALL
      DebugConfigInfo       On 
      KeepAliveEnabled ON 
      KeepAliveSecs  15
    </IfModule>
    <Location /web-app_name>
      SetHandler weblogic-handler 
    </Location>


10. Verify the syntax of the httpd.conf file with the following command:
$APACHE_HOME\bin\apachectl -t
The output of this command reports any errors in your httpd.conf file or returns:
Syntax OK

11. Re-start Apache server.

12. Test everything by hitting the URL below in the browser:
http://servername/application_name/

P.S:
Hope the above information helps. If you have a requirement of configuring Apache with multiple weblogic server instances running in same box (non-clustered environment) with different port numbers, please follow this blog entry for the steps.
Please feel free to ask me if you have any questions.

5 comments:

  1. how to configure the Static files like Css,Js and image of Apache Plug-in

    ReplyDelete
  2. Is this zip file of plugin valid for solaris as well? Does this apache plugin work for load balancing??

    ReplyDelete
  3. how to add http plugins for weblogic server

    ReplyDelete