我有一个 Azure 云服务设置如下:
<Sites>
<Site name="Web" physicalDirectory="../SampleWebsite/">
<Bindings>
<Binding name="HttpIn" endpointName="HttpIn" />
</Bindings>
</Site>
<Site name="Admin" physicalDirectory="../SampleWebsite/Admin">
<VirtualApplication name="Admin" physicalDirectory="../SampleWebsite/Admin">
<Bindings>
<Binding name="HttpsIn" endpointName="HttpsIn"/>
</Bindings>
</Site>
</Sites>
<Endpoints>
<InputEndpoint name="HttpIn" protocol="http" port="80" />
<InputEndpoint name="HttpsIn" protocol="https" port="443" certificate="www.domain.com" />
</Endpoints>
<Certificates>
<Certificate name="www.domain.com" storeLocation="LocalMachine" storeName="My" />
</Certificates>
我正在尝试为https://www.domain.com/Admin目录要求 SSL。但是,此配置允许在没有 SSL 的情况下连接到此 URL。有没有办法在 Azure 的子目录上要求 SSL?