Tuesday, February 11

Configure Apache with Weblogic Server


Steps to configure Apache plugin 2.2 with Weblogic Server :


- Download the latest plugin from the link below :
Link : http://www.oracle.com/technetwork/middleware/ias/downloads/wls-plugins-096117.html
- Now unzip the file that you have downloaded. ( Eg : WLSPlugin1.1.zip ).
- Now copy all the files present under ” WLSPlugin1.1\Apache_2.2\lib ” to ” /bin ” folder.
( Note : Do not copy ” libapr-1.dll ” ).
Copy ” mod_wl.so ” from  ” WLSPlugin1.1\Apache_2.2\lib ” to ” APACHE_HOME/modules ” folder
- Take a backup of httpd.conf file present in ” APACHE_HOME\conf\ ” folder.
- Edit the httpd.conf file and make the following changes 
# for a single server


LoadModule weblogic_module modules/mod_wl.so

<IfModule mod_weblogic.c> 
WebLogicHost 127.0.0.1 
WebLogicport 7001
MatchExpression *
Debug ON
WLLogFile c:/global_proxy1.1.log
DebugConfigInfo On 
</IfModule&gt


<Location > 
SetHandler weblogic-handler 
</Location >

 Now start the Apache server and weblogic server.
- Access http://localhost:7001/console

****************************************************************************** Configure Apache with Weblogic Server

Step 1) Make sure the Apache server runs on port 8080.
(This is because sometimes IIS, or some antivirus softwarew runs on that port).
This can be done by modifying the httpd.conf present at,
\Apache2\conf\httpd.conf

Modify the Listen port to 8080

Step 2) Copy the mod_wl_20.so from \wlserver_10.3\server\plugin\win\32 to
\Apache2\modules
Step 3) Add these lines in the httpd.conf file
 LoadModule weblogic_module modules/mod_wl_20.so

<Location />
SetHandler weblogic-handler
</Location>

<IfModule mod_weblogic.c>
      WebLogicCluster localhost:7003 ,localhost:7005
     Debug ON
     WLLogFile c:/temp/wlproxy.log
     WLTempDir c:/temp
</IfModule>


Step 4) Restart Apache and access the application deployed on the Cluster using
http://localhost:8080/YourApp

This will forward the request to the Weblogic Cluster
You can check the headers sent and received to WLS in wlproxy.log file.


  • Ananth Srinivas -> we need to enbale Proxy Plugin from the Weblogic console
    -> Copy the Module Files from Weblogic to Apache Modules Folder structure
    -> Edit httpd.conf file with below Information (Syntax is forExample)
    <IfModule mod_weblogic.c>
    WebLogicCluster 127.91.84.72:7001,127.0.0.1:7001,124.87.96.34:7001
    MatchExpression *.*
    Debug ON
    DebugConfigInfo ON
    KeepAliveEnabled ON
    WLLogFile":\home\apache2\logs\proxy.log"
    </IfModule
    >

  • Ananth Srinivas Log in to the Oracle WebLogic Server administration console.
    In the Domain Structure pane, expand the Environment node.
    If the server instances to which you want to proxy requests from Apache Server are in a cluster, select Clusters.
    Otherwise, select Servers.
    Select the server or cluster to which you want to proxy requests from Apache Server.
    The Configuration: General tab is displayed.
    Scroll down to the Advanced section, expand it, and select the WebLogic Plug-In Enabled check box.
    Click Save.
    Restart JVM to effect Changes

    copy mod_wl_20.so from WL_HOME\wlserver_10.0\server\plugin\win\32 to /opt/app/apache/conf/modules (These Path are from References , please replace them with ur environment Path)
  • Kiran Kumar Ravula ++ Adding 
    Virtual host configuration

  • Kishore Setti Adding some info in httpd.conf,

  •  <LoadModuleweblogic_module modules/mod_wl_20.so >

  • <Location />
    SetHandler weblogic-handler
    </Location<

5 comments:

  1. Very Informative Sir. Thank you for plug-in information. This information was useful for me in my apache tomcat server administration training in middleware.

    ReplyDelete
  2. 1.gunzip httpd-2.0.55.gz
    2.tar -xvf httpd-2.0.55.tar
    3.cd httd-2.0.55
    4. ./configure -prefix=\home\apache2.2\apache
    5. make
    6. make install
    instalation complete

    ReplyDelete
  3. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Apache Spark.kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor led training on Apache Spark. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.

    For Free Demo Contact us:
    Name : Arunkumar U
    Email : arun@maxmunus.com
    Skype id: training_maxmunus
    Contact No.-+91-9738507310
    Company Website –http://www.maxmunus.com


    ReplyDelete
  4. Imagine if you had a robot with 6 years live proof?

    I just finished a webinar with Mark and his partner, Antony, two days ago and it was GREAT.

    During the webinar Mark and Antony shared their stories to success and answered questions about their new release of the GPS Forex Robot that CAME OUT TODAY!

    ReplyDelete
  5. Nice articel, This article help me very well. Thank you. Also please check my article on my site Know All About Htaccess Tutorial. In link article we will learn about How to use .htaccess file?.

    ReplyDelete