Collection Contents 上一页 下一页 PDF

MobiLink 管理指南

通过 Web 服务器与重定向器同步

M-Business Anywhere 重定向器


Windows、Solaris 和 Linux 支持M-Business Anywhere 重定向器。它的测试已经通过使用 M-Business Anywhere 5.5 版完成。

配置 M-Business Anywhere 重定向器

  1. 完成配置重定向器属性(所有版本)中的步骤。

  2. 将文件 mod_iaredirect.dllmod_iaredirect.so 复制到 Web 服务器的 %avantgo-home%\bin 目录中。此文件位于 SQL Anywhere 安装目录的 MobiLink\redirector\avantgo\OS 子目录中,其中,OSlinuxsolaris。(对于 Windows,没有 OS 子目录。)

  3. 对于 Windows,请按以下步骤升级 M-Business Anywhere Web 服务器配置文件 sync.conf

  4. 对于 Solaris 和 Linux,请按以下步骤升级 M-Business Anywhere Web 服务器配置文件 sync.conf

  5. 为帮助调试,您可能想要增加重定向器输出的日志信息的数量。为此,请修改 sync.conf 中的 LogLevel 指令并将其设置为 LogLevel info。日志级别可以是(详细程度从高到低):debug、info、notice、warn、error、crit、alert 和 emerg。

    如果使用的是 HTTPS 以外的任何网络协议,则您的配置已完成。

  6. 如果您正使用 HTTPS 同步,您必需执行 ECC 和 RSA 安全机制。

    有关详细信息,请参见M-Business 服务器管理员指南 中的 [Windows 安全性] 或 [UNIX 安全性] 章节。

示例 

以下是 sync.conf 中某些部分的示例,这些示例配置 M-Business Anywhere Web 服务器以将请求路由到 MobiLink 同步服务器。

此示例在 Windows 上运行:

LoadModule iaredirect_module "c:\program files\M-Business Anywhere\bin\mod_iaredirect.dll"
...
SyncLoadFile "c:\program files\M-Business Anywhere\bin\mod_iaredirect.dll"
...
<Location \iaredirect\ml>
    SetHandler iaredirect-handler
    iaredirectorConfigFile "c:\AvantGoServer\conf\redirector.config"
</Location>

以下示例在 UNIX 和 Linux 上运行:

LoadModule iaredirect_module modules/mod_iaredirect.so
...
<Location /iaredirect/ml>
    SetHandler iaredirect-handler
    iaredirectorConfigFile "/redirector.config"
</Location>

测试您的配置

  1. 使用以下语法调用重定向器:

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

    其中,iaredirect 为您在 sync.conf 的 <Location> 标记内指定的路径。

  2. 检查日志文件看重定向器是否记录了请求。

    注意:此测试不建立到 MobiLink 同步服务器的连接。


Collection Contents 上一页 下一页 PDF