2

我在 IIS 7 中使用 SSL 通配符证书,并尝试强制执行以下重定向:

通配符证书是:*.domain.com

http://client1.domain.com ----> https://client1.domain.com

我使用 IIS 7 URL 重写管理单元在 XML 配置中创建以下重写规则,如果我使用常规的非通配符证书,该规则可以正常工作。任何人都知道我是否缺少任何步骤?

<rewrite>   
  <rules>     
    <rule name="client1.domain.com" stopProcessing="true">      
      <match url=".*"/>       
      <conditions>         
        <add input="{HTTPS}" pattern="off"/>         
        <add input="{HTTP_HOST}" pattern="^client1\.domain\.com$"/>         
      </conditions>       
      <action type="Redirect" url="https://{HTTP_HOST}{URL}"/>       
    </rule>     
  </rules>   
</rewrite>
4

1 回答 1

0

问题是没有调用重写,所以我重新安装了 URL 重写 IIS 管理单元。

于 2012-07-18T21:32:46.277 回答