5

在 Azure 中是否可以在单个 Binding 上有多个 hostHeader ,或者是否必须为每个 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 创建每个绑定条目(知道站点路径相同)?

4

1 回答 1

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>
于 2011-06-23T22:28:00.300 回答