Example of configuring a proxy server for SSL or HTTPS

Learn how to configure a proxy server for WebLogic.

Before you begin

The Oracle WebLogic 10.3 installation does not include the Apache HTTP server plug-ins. You must download these plug-ins in a separate compressed file from the Oracle download and support sites.

About this task

The WebLogic example that is provided in this topic is a general guideline for configuring a Web server. For information about how to configure a proxy server for WebSphere®, see the corresponding documentation.

Follow the procedure to configure a proxy server for SSL or HTTPS using the Apache HTTP Server and Oracle WebLogic.

Procedure

  1. Install and run Sterling™ Order Management System Software on the application servers.
  2. Copy the appropriate plug-in to the /etc/apache2/modules directory.

    For WebLogic 12.1.2, this is:

    <WL_HOME>/wlserver_12.1.2/server/plugin/<OS>/<processor type>

    Here, <WL_HOME> refers to the WebLogic installation directory. Example: /wls1212Linux/wlserver_12.1.2/server/plugin/linux/x86_64

    • For i686, copy the WLS plug-in.
    • For x86_64, copy the 64-bit plug-in. The 64-bit plug-in must be requested from Oracle Customer Service.
    • Ensure the plugin is executable.
  3. To enable the WebLogic plug-in for load-balancing using HTTP or HTTPS, modify the httpd.conf file and add the following. To enable an SSL, add include conf.d/ssl.conf as instructed by Apache. By default, RHAS3 has Include conf.d/*, which includes ssl.conf.
    LoadModule weblogic_module /etc/apache2/modules/<appserver_plugin_file>

    For an HTTP proxy, outside any VirtualHost, add the following section. The context_root value is the context_root for the web application being proxied:

    <IfModule mod_weblogic.c>    WebLogicCluster <managed_server1_hostname/IP_address>,<managed_server2_hostname/IP_address> DynamicServerList OFF Debug ON IdemPotent OFF </IfModule> <Location /context_root> SetHandler weblogic-handler  </Location> 
  4. Modify the ssl.conf file and add the following lines to the <VirtualHost _default_:443> section. The context_root value is the context_root for the web application being proxied.
    <IfModule mod_weblogic.c> WebLogicCluster <managed_server1_hostname/IP_address>,<managed_server2_hostname/IP_address> DynamicServerList OFF Debug ON IdemPotent OFF </IfModule> <Location /context_root> SetHandler weblogic-handler </Location> 
  5. Create security or SSL certificate, if necessary. If you do not have a CA-signed certificate, you can get one from the Certificate Authority companies such as VeriSign.
  6. Restart Apache, and verify access with any browser.