使用 RWP 时强制实施 SSL 连接

要在使用 RWP 时强制将非 SSL 请求作为 SSL 请求进行处理,请执行以下操作:

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


反馈