How to Configure Apache Web Server to Work With Weblogic
Basic servers, such as Apache, handle basic HTTP requests. WebLogic servers are Java servers that provide more functionality. Apache Web Server can be configured to work with Weblogic by handling static pages and "forwarding" dynamic pages to the WebLogic server. In this way, server requests that require WebLogic's functionality can be directed to that server. To do this, begin by installing the Apache HTTP Server Plug-In.
Instructions
-
-
1
Download the plug-in, which will be in a .zip format, and extract it somewhere on your computer. Open the folder and, in Windows, locate the plug-ins in the "win\32" folder. You will find more than one version of the plug-in. Follow table 3-2 on Oracle's Apache configuration page (See Resources for link) to determine the one you need. Copy the appropriate plug-in to the APACHE_HOME\modules folder.
-
2
Edit the httpd.conf file after installing the plug-in. Locate the installation directory and open the "conf" folder. Double-click the file to open it. It should open in Notepad; if not, you can open Notepad first and then open the file from there. Add this line to the file: LoadModule weblogic_module modules\mod_wl_20.so. Adding this line ensures that WebLogic Server modules will be included in the Apache Web Server.
-
-
3
Enter an IfModule block to the file to define the WebLogic parameters. To configure a clustered WebLogic Server, you'll need to define only the WebLogicCluster parameter. If it's non-clustered, define both the WebLogicHost and WebLogicPort parameters.
-
4
Type <IfModule mod_weblogic.c> on the first line. On line 2 enter: WebLogicHost myweblogic.server.com (Substitute "myweblogic.server.com" with your actual server.) On line 3 type: WebLogicPort 5001, (substitute the WebLogic port number for the real one.) Finally, close the block with: <IfModule>.
-
5
Proxy requests by MIME type by entering the line: MatchExpression into the IfModule block. For example, "MatchExpression *.xyz". This step is only necessary if you would like to filter the requests in this manner. You can also enable HTTP tunneling, if desired, by adding a Location block. Type the block like this: <Location /iiop> SetHandler weblogic-handler</Location>7. Save and close the httpd.conf file.
-
1
Tips & Warnings
Many more parameters can be defined in the httpd.conf file. The plug-in will recognize all parameters shown in the "General Parameters for Web Server Plug-Ins" list.
If you've enabled both proxying by path and proxying by MIME type, proxying by path will take priority.
For a clustered server, use the WebLogicCluster parameter and list the server(s).