Configuring Apache Web Server for load balancing in Windows environment

In a typical configuration that uses Apache Web Server for load balancing on Windows computers, Apache Web Server is installed on a separate computer.

Procedure

  1. Log on to load-balancing server as a user with administrative privileges.
  2. Open a Command Prompt window by using the Run as Administrator option.
  3. Go to the Apache_Home\conf directory.
  4. Open the httpd.conf file.
    1. To load the required modules, add or uncomment the following lines:
      LoadModule negotiation_module modules/mod_negotiation.so
      LoadModule proxy_module modules/mod_proxy.so
      LoadModule proxy_ajp_module modules/mod_proxy_ajp.so  
      LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
      LoadModule proxy_connect_module modules/mod_proxy_connect.so
      LoadModule proxy_http_module modules/mod_proxy_http.so
      LoadModule status_module modules/mod_status.so
      LoadModule weblogic_module modules/mod_wl_22.so
    2. Change the ServerName=MYSERVERNAME.DOMAIN.COM setting to point to the host name where you installed the Apache Web Server.

      ServerName=op-load-balancer.domain.com

    3. Change the ServerRoot setting to point to the directory where you installed the Apache Web Server.

      The default setting is ServerRoot=C:/Program Files/Apache Software Foundation/Apache2.2

    4. Change all Directory element tags to point to the location of the Apache web server installation, and then add the setting "Allow from all" to the tag attributes.
      <Directory "C:/Apache2.2/htdocs">
      Options Indexes FollowSymLinks
      AllowOverride None
      Order allow,deny
      Allow from all
      </Directory>
    5. To configure the web server to forward requests to Oracle WebLogic Server, add the following entries to the end of the httpd.conf file.
      Note: SERVER.DOMAIN.COM:port is the server name and application port that hosts the application nodes.

      WebLogicPort is the admin server port for the OpenPages® or workflow server.

      For the <Location /opws> and <Location /openpages> entries, include all OpenPages application nodes in the cluster.

      For the <Location /ibpmweblogicconsole> entries, include all workflow nodes in the cluster.

      The following example uses a two-node installation with the first node at port 7001, and the second port at 7011.

      <Location /console>
      SetHandler weblogic-handler
      MaxPostSize 0
      Debug On
      WLLogFile logs/weblogic_console.log 
      WebLogicHost <SERVER>.<DOMAIN>.COM 
      WebLogicPort 7001
      </Location>
      
      
      <Location /opws>
      WLCookieName opapp
      SetHandler weblogic-handler
      MaxPostSize 0
      KeepAliveEnabled ON 
      KeepAliveSecs 15
      Debug On
      WLLogFile logs/openpages_webservices.log
      WebLogicCluster <SERVER>.<DOMAIN>.COM:<PORT>,<SERVER>.<DOMAIN>.COM:<PORT>
      </Location>
      
      
      <Location /openpages>
      WLCookieName opapp
      SetHandler weblogic-handler
      DynamicServerList ON 
      MaxPostSize 0 
      Debug On
      WLLogFile /logs/openpages.log
      WebLogicCluster <SERVER>.<DOMAIN>.COM:<PORT>,<SERVER>.<DOMAIN>.COM:<PORT>
      </Location>
      
      
      <Location /ibpmconsole>
      WLCookieName opibpm 
      SetHandler weblogic-handler 
      DynamicServerList ON 
      MaxPostSize 0 
      Debug On
      WLLogFile logs/ibpmconsole.log 
      WebLogicCluster <SERVER>.<DOMAIN>.COM:<PORT>,<SERVER>.<DOMAIN>.COM:<PORT>
      </Location> <Location /ibpmweblogicconsole> SetHandler weblogic-handler MaxPostSize 0 Debug On WLLogFile logs/ibpmweblogic_console.log WebLogicHost <SERVER>.<DOMAIN>.COM WebLogicPort 49901 </Location>
    6. To enable monitoring and status of the load balancer, add the ExtendedStatus On parameter and setting.
    7. To enable monitoring and status of the load balancer, set the location tags for server-status and server-info
      <Location /server-status>
      SetHandler server-status
      Order Deny,Allow
      Deny from all
      Allow from all
      </Location>
      
      <Location /server-info>
      SetHandler server-info
      Order Deny,Allow
      Deny from all
      Allow from all
      </Location>
  5. Save and close the file.
  6. Log on to the OpenPages cluster member, as a user with administrative privileges.
  7. Open a Command Prompt window by using the Run as Administrator option.
  8. Go to the OP_Home\aurora\conf directory and open the aurora.properties file in a text editor.
    1. Edit the application.url.path lines to point to the fully qualified domain name of the load balancer:
      application.url.path=http\://top-load-balancer.domain.com\:
         port/openpages
    2. Save and close the file.
  9. Open each server_name-OpenPagesServer#-server.properties file in a text editor.
    1. Edit the url.path lines to point to the fully qualified domain name of the load balancer.
      url.path.workflow.admin=http\://<top-load-balancer.domain.com>
         \:<port>/ibpmconsole
      url.path.openpages=http\://<top-load-balancer.domain.com>\:<port>/openpages
    2. Save and close each server.properties file.
  10. Open each server_name-OpenPagesServer#-sosa.properties file in a text editor.
    1. Edit the Application.url.path lines to point to the fully qualified domain name of the load balancer.
      application.url.path=https\://op-load-balancer.domain.com\:
       port/openpages
    2. Save and close each file.
  11. Open each server_name-InterstageBPMCS#-server.properties file in a text editor.
    1. Edit the url.path lines to point to the fully qualified domain name of the load balancer.
      url.path.workflow.admin=http\://op-load-balancer.domain.com\:
         port/ibpmconsole
      url.path.openpages=http\://op-load-balancer.domain.com\:port/openpages
    2. Save and close each server.properties file.
  12. Using the Windows Start menu, start Apache web server in a console window.

    This command opens a console window and starts the Apache Web Server running inside it. Closing this console window terminates the Apache Web Server.