使用 CM Server 强制实施 SSL 连接

要使用 CM Server 强制将非 SSL 请求作为 SSL 请求处理:

  1. 添加或修改 httpd.conf 中的 virtualhost 设置,以包含以下命令(在 Windows® 中):
    <VirtualHost *:12080>
    ServerName yourservername
    RewriteEngine on
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule ^(.*)$ https://yourservername$1 [R]
    RewriteLogLevel 0
    RewriteLog "C:\Program Files\IBM\RationalSDLC\common\IHS\logs\rewrite.log"
    </VirtualHost>
    注: 请确保将这些命令适当的放置在 httpd.conf 文件中,以便在装入 WebSphere® 应用程序模块和 WebSphere 插件模块之前执行这些命令。
  2. 通过添加以下命令来包含 ssl.conf 文件:
    # include ssl information
    Include conf/ssl.conf
  3. 编辑 ssl.conf 文件,提供正确的 SSL 证书路径信息。

反馈