Wednesday, July 15, 2020

Configure Apache with Weblogic Server

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.

No comments:

Post a Comment