Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » MobiLink - Server Administration » Synchronizing Through a Web Server with the Redirector

Servlet Redirector Next Page

Apache Redirector


The following setup instructions are written for Apache.

For information about version support, see Redirector in [external link] SQL Anywhere 10.0.1 Components by Platform.

If you are using Tomcat, you can also use the servlet Redirector. For more information, see Servlet Redirector.

To configure the Apache Redirector
  1. Complete the steps in Configuring Redirector properties (for Redirectors that don't support server groups).

  2. Copy the file mod_iaredirect.dll or mod_iaredirect.so to the appropriate directory in your web server, as follows:

  3. If your web server is on a separate computer from the Redirector, you must copy the following files to that computer and ensure that they are in your path (Windows) or shared path (Unix). What files you need depends on what, if any, encryption you are using. The following file locations are relative to your SQL Anywhere installation:

    SetupFiles required
    ECC encryption
    • Windows: win32\mlcecc10.dll
    • Unix: lib32/libmlcecc10_r.so
    RSA encryption
    • Windows: win32\mlcrsa10.dll
    • Unix: lib32/libmlcrsa10_r.so
    RSA encryption with FIPS
    • Windows: win32\mlcrsafips10.dll and win32\sbgse2.dll
    • Unix: lib32/libmlcrsafips10_r.so and libsbgse2_r.so
  4. Update the Apache web server configuration file httpd.conf as follows.

  5. To help with debugging, you may want to increase the amount of logging information that the Redirector outputs. To do this, modify the LogLevel directive in httpd.conf and set it to LogLevel info. The log level can be (from most to least verbose): debug, info, notice, warn, error, crit, alert, and emerg.

Example

Following are examples of the sections of httpd.conf that configure the Apache web server to route requests to the MobiLink server. This example works for Windows. For UNIX and Linux, change mod_iaredirect.dll to mod_iaredirect.so.

LoadModule iaredirect_module modules/mod_iaredirect.dll
...

<Location /iaredirect/ml>
    SetHandler iaredirect-handler
    iaredirectorConfigFile c:/redirector.config
</Location>
To test your configuration
  1. Call the Redirector using the following syntax:

    http://host:port/iaredirect/ml/

    where iaredirect/ml is the relative URL path you specified in the <Location> tag of httpd.conf.

  2. Check the log file to see if the Redirector logged a request. The default location of the log file is $APACHE_HOME/logs/error.log.

    Note: This test does not make a connection to the MobiLink server.