Configuring Apache for Relay Server

Modify the Apache HTTP Server configuration and environment, as needed for Relay Server.

Prerequisites
Create a Relay Server configuration file and deploy it on the Relay Server (Apache) host.
Task
Edit the Apache httpd.conf and envvars files to:
  • Load Relay Server client and server modules
  • Define locations and handlers for the client and server modules
  • Increase the number of concurrent clients (if necessary)
  • Set environment variables required by Relay Server executables
  1. Open httpd.conf in a text editor.
    1. To load Relay Server modules, add:
      LoadModule iarelayserver_client_module modules/mod_rs_ap_client.so
      LoadModule iarelayserver_server_module modules/mod_rs_ap_server.so
    1. To define a LocationMatch for the Relay Server client module, add:
      <LocationMatch /cli/iarelayserver/* >
          SetHandler iarelayserver-client-handler
      </LocationMatch>
    2. To define a Location for the Relay Server server module, add:
      <Location /srv/iarelayserver/* >
          SetHandler iarelayserver-server-handler
          RSConfigFile "/apache-install/modules/rs.config"
      </Location>

      The server module Location must match the server URL suffix specified in the Relay Server configuration file.

      The RSConfigFile directive specifies the location of the Relay Server configuration file, which must reside in the same directory as the State Manager executable (rshost).

    3. (Optional) To increase the maximum number of concurrent clients, if necessary, add.
      ServerLimit 1000
      MaxClient 1000

      By default, Relay Server on Apache is configured for 100 concurrent device users. If you need more than that, set the ServerLimit and MaxClient directives to an appropriate value.

  2. Open envvars in a text editor.
    1. To set and export environment variables required for Relay Server executables, add:
      path="$path:/apache-install/modules"
      export $path
      LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/apache-install/modules"
      export $LD_LIBRARY_PATH
    2. Determine if one of the following environment variables are set globally: TMP, TMPDIR, or TEMP.

      If none of those variables is set globally, or to save the default Relay Server log file in another specific directory, set and export the TMP variable to point to the log file location.

      Note: The Apache user process must have write permission in the directory specified by $TMP.
Next

Restart the Apache HTTP Server after you make the configuration changes.