I have a Virtual Machine running in Azure that is hosting several websites in IIS. The VM has a loadbalancer in front of it, and in my DNS settings I point my A-record to the loadbalancers's IP address.

This all works fine with one website in IIS when I can set the binding IP to 'All Unassigned', but when using multiple sites, I'm stuck.

How I can I configure this, can I register multiple IP's to my Azure Loadbalancer or can I soly fix this with IIS config.

Thank you.


Have you considered using Host Headers in IIS? this will allow you to use the same IP Address and Same port to access multiple Web sites on the same Web server.



Without using host headers you can only bind one SSL enabled site to an IP address, the simplistic explanation is that when using SSL the headers are encrypted and IIS cannot inspect the request to determine where it needs to go.

Not knowing which version of IIS you're using I've included two methods below:

In IIS 7 and below there is no way to do this in the GUI, however using this super handy tool IIS Buddy binding tool you can easily assign mutiple HTTPS bindings / certificates on a single IP address it is also worth noting that giving your certificate a friendly name beginning with * can solve some problems.

In IIS 8 there is the option to require Server Name Indication, more information here Add HTTP host headers in IIS 8


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.