在托管https://example.com的 IIS 10.0 服务器上,我应该在我的 applicationHost.config 中添加什么,以使以下所有内容都成立:
- https://example.com/不请求客户端证书。
- https://example.com/index.html不请求客户端证书。
- 其他一切,https://example.com/ * ,请求并需要客户端证书。
- https://example.com/index.html是 https://example.com/ 的默认文档
<configuration>
<location path="">
<system.webServer>
<defaultDocument enabled="true">
<files>
<add value="index.html" />
</files>
</defaultDocument>
<security>
<access sslFlags="Ssl, SslNegotiateCert, SslRequireCert, Ssl128">
</security>
</system.webServer>
</location>
<location path="index.html">
<system.webServer>
<security>
<access sslFlags="Ssl, Ssl128">
</security>
</system.webServer>
</location>
<location path="/">
<system.webServer>
<security>
<access sslFlags="Ssl, Ssl128">
</security>
</system.webServer>
</location>
</configuration>
不起作用,因为<location path="/">
不允许。