Webrole - multiple hosts for one binding?

Is it possible in Azure to have multiple hostHeader for one binding or is it mandatory to create one Binding for each host?

Example:

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

Or do I need to create each binding record for one hostHeader (knowing that the site path is the same)?

+5
source share
1 answer

I believe this should be done as follows:

<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>
+9
source

All Articles