Azure中是否可以在单个Binding上具有多个hostHeader,或者是否必须为每个主机头创建一个Binding?
示例:
<Sites>
...
<Site name="sample.com" physicalDirectory="..\sample.com">
<Bindings>
<Binding name="ep_sample" endpointName="Endpoint1" hostHeader="www.sample1.com,www.sample2.com,www.sample3.com" />
</Bindings>
</Sites>
或者我是否必须为单个hostHeader创建每个绑定条目(知道站点路径是相同的)?
答案 0 :(得分:9)
我认为必须这样做:
<Sites>
...
<Site name="sample.com" physicalDirectory="..\sample.com">
<Bindings>
<Binding name="ep_sample1" endpointName="Endpoint1" hostHeader="www.sample1.com" />
<Binding name="ep_sample2" endpointName="Endpoint1" hostHeader="www.sample2.com" />
</Bindings>
</Sites>