0
在一個單一的天青網站角色中,我有兩個端點。我有兩個站點,每個站點綁定到不同的端點。就像這樣:具有兩個站點的Azure Web角色不能綁定到兩個不同的端點
<WebRole name="MyWebRole">
<Endpoints>
<InputEndpoint name ="HttpIn" protocol="http" port="80"/>
<InputEndpoint name="HttpsIn" protocol="https" port="443" certificate="Certificate1" />
</Endpoints>
<Sites>
<Site name="Web">
<Bindings>
<Binding name ="HttpsIn" endpointName="HttpsIn"/>
</Bindings>
</Site>
<Site name="Open" physicalDirectory="..\..\NotSecure">
<Bindings>
<Binding name ="HttpIn" endpointName="HttpIn"/>
</Bindings>
</Site>
</Sites>
當在調試器中運行這個,我得到一個錯誤說
「有一個錯誤調試器附加到IIS工作進程的URL的」 http://127.255。 0.0:82" 爲角色實例....
好了,看在IIS管理器中,我找到了部署點擊:關於瀏覽http://127.255.0.0:82/它配備了罰款,瀏覽到另一個網站來。
但是,確認錯誤會停止調試器並刪除部署。
這種配置是不允許的嗎?寧願避免虛擬目錄。只需要兩個完全不同的網站在同一個域上基於http或https運行。少了什麼東西?