weblogic_module Module developed to integrate the weblogic application server with Apache webserver. Module version varied according with Apache version.
- For 2.0.x Apache : mod_wl_20.so
- For 2.2.x Apache : mod_wl_22.so
Weblogic_module plugin available at weblogic installation package or can be download from Apache download Mirrors.
{Installation Path}/wlserver_10.3.5/server/plugin/solaris/sparc/mod_wl_20.so
{Installation Path}/wlserver_10.3.5/server/plugin/solaris/sparc/mod_wl_22.so
{Installation Path}/wlserver_10.3.5/server/plugin/linux/x86_64/mod_wl_20.so
{Installation Path}/wlserver_10.3.5/server/plugin/linux/x86_64/mod_wl_22.so
Note: Plugin is operating system specific so we should use the Apache webserver operating system specific plugin.
Steps to integrate Weblogic application server with Apache
- Load the weblogic_module as below in httpd.conf file.
LoadModule weblogic_module /modules/mod_wl_20.so
- Add the below configuration tags in httpd.conf file.
<Location /weblogic_app >
SetHandler weblogic-handler
WLLogFile /apache/2.0.55/logs/wlproxy.log
WLProxySSL ON
WebLogicCluster weblogic-server1.com:7009,weblogic-server2.com:7009
</Location>
Note: If Virtual hosts has configured , place the above configuration in virtual host tag
# Ensure that Apache listens on port 80
Listen 8080
# Listen for virtual host requests on all IP addresses
NameVirtualHost *:8080
<VirtualHost *:8080>
ServerName www.weblogic.com
<Location /weblogic_app >
SetHandler weblogic-handler
WLLogFile /apache/2.0.55/logs/wlproxy.log
WLProxySSL ON
WebLogicCluster weblogic-server1.com:7009,weblogic-server2.com:7009
</Location>
</VirtualHost>
- Restart the Apache server to reflect the changes
Note: The above configuration is for weblogic clustered servers. If we have more managed servers in a weblogic cluster use the configuration as below
WebLogicCluster weblogic-server1.com:7009,weblogic-server2.com:7009,weblogic-server3.com:7009,weblogic-server4.com:7009
<Location /weblogic_app >
SetHandler weblogic-handler
WLLogFile /apache/2.0.55/logs/wlproxy.log
WLProxySSL ON
WebLogicCluster weblogic-server1.com:7009,weblogic- server2.com:7009,weblogic-server3.com:7009,weblogic-server4.com:7009
</Location>
- If we want to integrate the standalone or single weblogic server instance use the below configuration.
<Location /Single_weblogic_app>
SetHandler weblogic-handler
WebLogicHost weblogic-single_app.com
WebLogicPort 7009
</Location>
No comments:
Post a Comment