开发者

Webrole - Multiple hostHeader on a single Binding?

开发者 https://www.devze.com 2023-03-14 20:29 出处:网络
Is it possible in Azure to have multiple hostHeader on a single Binding or is it mandatory to create one Binding for each hostheader ?

Is it possible in Azure to have multiple hostHeader on a single Binding or is it mandatory to create one Binding for each hostheader ?

Example :

<Sites>
...
<Site name="sample.com" physicalDirectory="..\sample.com">
<Bindings>
    <Binding name="ep_s开发者_StackOverflow社区ample" endpointName="Endpoint1" hostHeader="www.sample1.com,www.sample2.com,www.sample3.com" />
</Bindings>
</Sites>

Or do I have to create each binding entry for single hostHeader (knowing that the site path is the same)?


I believe it has to be done like this:

<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>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号