After installing Sybase Unwired Platform, extract the relay server component files to the Apache modules directory, edit the main configuration file for the Apache HTTP server, and set the environment variables.
The relay server module expects rs.config to be in the same directory as rshost.
LoadModule iarelayserver_client_module modules/mod_rs_ap_client.so LoadModule iarelayserver_server_module modules/mod_rs_ap_server.so
The client and server modules are invoked using different URLs. The client module explicitly looks for the string iarelayserver in the URL path.
<LocationMatch /cli/iarelayserver/* > SetHandler iarelayserver-client-handler </LocationMatch>
<Location /srv/iarelayserver/* > SetHandler iarelayserver-server-handler RSConfigFile "/<apache-install>/modules/rs.config" </Location>
The RSConfigFile directive specifies the location of the relay server configuration file, rs.config. The rs.config file must reside in the same directory where the rshost executable is deployed. For details about configuring this file, see System Administration > Environment Setup > Relay Server> Configuring a Relay Server in a Multinode Cluster.
Make sure the Apache user process has write permissions to the /tmp directory location.
set TMP="/tmp" export TMP
This command sets the environment variable in the shell that Apache creates before it spawns its processes.