Connect to SAP Mobile Server through a Reverse Proxy using Relay Server or the Apache Web server.
// Register: SUPApplication *app = [SUPApplication getInstance]; SUPConnectionProperties *props = app.connectionProperties; props.urlSuffix = @"/ias_relay_server/client/rs_client.dll/$messaging-farmId$"; // (e.g. /ias_relay_server/client/rs_client.dll/mega-vm008.msg) //Synchronize: SUPConnectionProfile *sp = [TestTestDB getSynchronizationProfile]; sp.networkStreamParams = @"url_suffix=/ias_relay_server/client/rs_client.dll/$replication-farmId$"; // (e.g. /ias_relay_server/client/rs_client.dll/mega-vm008.rep)
Add to the httpd.conf file: content: Listen 80 <VirtualHost *:80> ServerName proxy-server <Location /app1/> ProxyPass http://sup-server:5001/ ProxyPassReverse http://sup-server:5001/ </Location> <Location /app2/> ProxyPass http://sup-server:2480/ ProxyPassReverse http://sup-server:2480/ </Location> </VirtualHost> //Register SUPApplication *app = [SUPApplication getInstance]; SUPConnectionProperties *props = app.connectionProperties; props.urlSuffix = @"/app1"; //Synchronize SUPConnectionProfile *sp = [TestTestDB getSynchronizationProfile]; sp.networkStreamParams = @"url_suffix=/app2";