Databases Reference
In-Depth Information
configuration of
# the server, or you may simply copy their contents here and
change as
# necessary.
# WebLogic Plug-in Configuration
Include conf/extra/httpd-weblogic.conf
10. Type
:wq!
to save the file and exit.
11. Start the Apache HTTP Server.
[webadmin@web01]$ $APACHE_HOME/bin/apachectl start
12. Repeat the previous steps and configure the
web02
machine too with the appropriate
web02
hostname.
How it works...
The plug-in distribution files were extracted and the files from the
lib
directory were copied
to the
$APACHE_HOME/lib
directory of the Apache installation, including the
mod_wl.
so
plug-in itself.
Also a new configuration file was created so the WebLogic plug-in configuration is kept apart
from the Apache configuration. The syntax to include the new
httpd-weblogic.conf
ile
was added to the original configuration
httpd.conf
file. This procedure follows the default
httpd.conf
behavior of including extra configuration files.
The
httpd-weblogic.conf
file used as a sample in this recipe is configured so that all
requests to Apache are distributed to the WebLogic cluster.
The configuration file is displayed with more information:
#Loads the WebLogic plug-in module
LoadModule weblogic_module lib/mod_wl.so
#All requests - from the root path (/) and below - will be handled by the
WebLogic plug-in.
<Location />
SetHandler weblogic-handler
#Defines the initial Cluster Address the plug-in will try to connect and
distribute the requests
WebLogicCluster prodsrv01.domain.local:8001,prodsrv02.domain.
local:8002,prodsrv03.domain.local:8003,prodsrv04.domain.local:8004
</Location>
Search WWH ::
Custom Search