我在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>发布于 2012-07-18 21:32:46
问题是重写没有被调用,所以我重新安装了URL重写IIS插件。
https://stackoverflow.com/questions/11514919
复制相似问题