Integrating Apache with Weblogic & Websphere
SetHandler weblogic-handler
PathTrim /weblogic
WebLogicHost Weblogic host ip
WebLogicPort 7001
MatchExpression *
ProxyPass / http://weblogichostip:7001/
ProxyPassReverse / http:// weblogichostip:7001/
Integrating Apache with Weblogic & Websphere, Apache integrate with weblogic and webshpere, integrate weblogic with apache, intergrate websphere with apache, integrating apache with weblogic, integrating apache with websphere
Below is the example of integrating apache with weblogic admin console page…
1. Goto WL_HOMEServerbin and locate the file (where WL_HOME is the Weblogic installation directory)
mod_wl_20.so (Regular Strength encryption)
mod_wl28_20.so (128 bit encryption)
mod_wl28_20.so (128 bit encryption)
2. Goto APACHE_HOMEmodules directory and copy the above file(s)
3. The Apache HTTP Server Plug-In will be installed in your Apache HTTP Server Installation as an Apache Dynamic Shared Object (DSO) which is based on mod_so.c. Make sure it is enabled (By default it should be enabled) by executing the command below.
APACHE_HOMEbinapache -l (You should see mod_so.c in the output).
4.Edit the Apache httpd.conf file in APACHE_HOME/conf directory and add these lines
#Weblogic configuration details
LoadModule weblogic_module modulesmod_wl_20.so
#Location tag is added only for proxy support by path
#It will take precedence when proxying by MIME type
#is also enabled
#It will take precedence when proxying by MIME type
#is also enabled
SetHandler weblogic-handler
PathTrim /weblogic
WebLogicHost Weblogic host ip
WebLogicPort 7001
MatchExpression *
5. Test the syntax of the httpd.conf file using the command
APACHE_HOMEbinapache -t (You should see SYNTAX OK as output).
6. Restart Weblogic and Apache.
Now if you type
http://apachehostip , it should lead to the Weblogic home page (provided the definition was not there, else it will take precedence and instead of http://apachehostip you have to type http://apachehostip/console/ to see the Weblogic Home Page).
Steps for Apache with Web logic using mod_proxy:
From Apache side:
Edit the httpd.conf file in the /conf directory
Add the following lines:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
#Here Apache and Web logic are running in the same machine.
#Change the IP address to x.y.com if Weblogic is running in a
#different box
#Change the IP address to x.y.com if Weblogic is running in a
#different box
NameVirtualHost apachehostip:80
#Here Apache is configured as a proxy server
ProxyPass / http://weblogichostip:7001/
ProxyPassReverse / http:// weblogichostip:7001/
#The default listening port for BEA Web logic application server is 7001
Now if you type
http://apachehostip it should lead to the Weblogic home page.