MobiLink Synchronization User's Guide
Synchronizing Through a Web Server
This section describes generic web server configuration steps to configure Redirector properties.
To configure Redirector properties
Complete the steps in Configuring MobiLink clients and servers for the Redirector.
Copy redirector.config to the web server.
The file redirector.config is provided with the MobiLink synchronization server installation, in the MobiLink\redirector subdirectory of your SQL Anywhere installation.
If the MobiLink synchronization server is not installed on the same computer as the web server, copy redirector.config to the computer that holds the web server.
For Microsoft web servers, copy redirector.config to the directory Inetpub/scripts. For other web servers, you can copy redirector.config to any directory.
Configure the Redirector configuration file.
To configure communications between the web server and MobiLink synchronization server, you must edit the file redirector.config on the computer that holds the web server.
You can set the following directives in this file:
LOG_LEVEL used to control the amount of output written to the log file. Values are 0, 1, and 2, with 1 being the default and 2 generating the most output.
ML used to list the computers running MobiLink synchronization server, in the form ML=host:port
. ML is case sensitive.
ML_CLIENT_TIMEOUT used to ensure that each step of a single synchronization is directed to the same MobiLink synchronization server. The default value is 600 seconds (ten minutes).
Information is maintained by the MobiLink synchronization server for the duration of a synchronization, so each step of a synchronization should be handled by the same server. The Redirector maintains an association between client and server for the duration of ML_CLIENT_TIMEOUT. The value of this parameter should be greater than the longest step in any user's synchronization.
REDIRECTOR_HOST used to specify the machine name of the web server running the Redirector. For example, myCompany.com. If your web server is running behind a proxy or load balancer, REDIRECTOR_HOST must specify the host name of the proxy or load balancer.
REDIRECTOR_PORT used to specify the port of the web server running the Redirector. For example, 80. If your web server is running behind a proxy or load balancer, REDIRECTOR_PORT must specify the port number of the proxy or load balancer.
SLEEP used to set the interval in seconds at which the Redirector checks that the servers are functioning. The default is 1800 (30 minutes). For example, SLEEP=3600
. SLEEP is case sensitive.
The following rules apply to redirector.config:
The maximum line length is 300 characters.
Comments start with the hash character (#).
You cannot include spaces or tabs in the directive definitions.
Complete the web server-specific configuration in one of the following sections:
Following is a sample redirector.config file. This file specifies the following:
The Redirector should check every 1800 seconds that the servers are functioning.
The three computers running MobiLink synchronization server that are able to process requests.
The host name and port of the web server where the Redirector resides.
SLEEP=1800 ML=myServ-pc:80 ML=209.123.123.1:8080 ML=myCompany.com:8081 REDIRECTOR_HOST=test2.ianywhere.com REDIRECTOR_PORT=8081