Technical data

Configuring the Apache HTTP Server Plug-In
Administration Guide 11-11
Editing the httpd.conf File
To edit the httpd.conf file to configure the Apache HTTP Server Plug-In:
1. Open the
httpd.conf file. The file is located at
APACHE_HOME/conf/httpd.conf (where APACHE_HOME is the root directory of
your Apache installation).
2. Ensure that the
httpd.conf LoadModule stanza will load the correct module by
verifying that the following two lines were added to the
httpd.conf file when
you ran the
apxs utility:
LoadModule weblogic_module libexec/mod_wl.so
AddModule mod_weblogic.c
3. Add an IfModule block that defines one of the following:
For a non-clustered WebLogic Server:
The
WebLogicHost and WebLogicPort parameters.
For a cluster of WebLogic Servers:
The
WebLogicCluster parameter.
For example:
<IfModule mod_weblogic.c>
WebLogicHost myweblogic.server.com
WebLogicPort 7001
</IfModule>
4. If you want to proxy requests by MIME type, also add a MatchExpression line
to the
IfModule block. (You can also proxy requests by path. Proxying by path
takes precedence over proxying by MIME type. If you only want to proxy
requests by path, skip to step 5. )
For example, the following
IfModule block for a non-clustered WebLogic
Server specifies that all files with MIME type
.jsp are proxied:
<IfModule mod_weblogic.c>
WebLogicHost myweblogic.server.com
WebLogicPort 7001
MatchExpression *.jsp
</IfModule>
You can also use multiple MatchExpressions, for example: