2016-06-28 83 views
0

我有一個具有2個Web角色的Azure雲服務。使用下面的配置,我可以通過http和https連接到站點1,但只能通過站點2的http連接。有沒有什麼明顯的我在這裏錯過了?用於Azure雲服務的多個HTTPS終端節點

Site 1 
<Sites> 
    <Site name="Web"> 
    <Bindings> 
     <Binding name="Endpoint1" endpointName="Endpoint1" /> 
     <Binding name="HttpsIn" endpointName="HttpsIn" /> 
    </Bindings> 
    </Site> 
</Sites> 
<Endpoints> 
    <InputEndpoint name="Endpoint1" protocol="http" port="80" /> 
    <InputEndpoint name="HttpsIn" protocol="https" port="443" certificate="mycert" /> 
</Endpoints> 
<Certificates> 
    <Certificate name="mycert" storeLocation="LocalMachine" storeName="CA" /> 
</Certificates> 

Site2 
<Sites> 
    <Site name="Web"> 
    <Bindings> 
     <Binding name="Endpoint1" endpointName="Endpoint1" /> 
     <Binding name="HttpsIn" endpointName="HttpsIn" /> 
    </Bindings> 
    </Site> 
</Sites> 
<Endpoints> 
    <InputEndpoint name="Endpoint1" protocol="http" port="8081" /> 
    <InputEndpoint name="HttpsIn" protocol="https" port="445" certificate="mycert" /> 
</Endpoints> 
<Certificates> 
    <Certificate name="mycert" storeLocation="LocalMachine" storeName="CA" /> 
</Certificates> 

回答

0

我通過使用站點2的https端點的不同端口來解決此問題。看起來Azure Cloud Service不喜歡端口445.