Thought I'd walk through how to configure Apache as the front end server for a Weblogic Server.
Turns out, it's as easy as the proverbial:
- Install WLS, create a domain, start it up
- Download and install Apache (I used 2.2)
- Copy the corresponding Apache module (for 2.2 I used mod_wl_22.so) from the WLS installation into $APACHE_HOME/modules directory
- Edit $APACHE_HOME/conf/httpd.conf and enable the mod_weblogic as follows:
# Load BEA Module
LoadModule weblogic_module modules/mod_wl_22.so
# Config file for WebLogic Server that defines the parameters
Include conf/mod_weblogic.conf Create the referenced mod_weblogic.conf file in which you place the configuration elements for mod_weblogic to use:
# Basic config for mod_weblogic to point at my WLS instance
WebLogicHost localhost
WebLogicPort 7001
Debug ON
WLLogFile c:\temp\wlproxy.log
WLTempDir c:\temp
DebugConfigInfo On
# Map the URLs to expose via Apache
# Expose the console via Apache
SetHandler weblogic-handlerTest the config with Apache
$APACHE_HOME\bin\httpd -tStart Apache Access the console via Apache (assuming all default ports)
http://localhost:8080/console
With the config above, I've enabled the DebugConfigInfo option -- which allows you to see a bunch of useful debug/usage information by entering a URL serviced by mod_weblogic and tacking on a request parameter of the form ?__WebLogicBridgeConfig.
No comments:
Post a Comment