6

Is it possible to have one web role hosted on Windows Azure which respond to multiple domains (to be precise 10 -> ex. www.company.com, www.company.de, www.company.co.uk … ect. ) and having both HTTP and HTTPS (SSL certificates) ?

If this is not possible, what is the alternatives to run one web role with multiple domains and having SSL on them with windows azure ?

Thanks !

DevUser
  • 751
  • 2
  • 8
  • 26

3 Answers3

3

Yes, now you can do it using "SSL hostheaders" with a new supported feature called SNI, available in IIS 8 (Windows Server 2012).

So, you will need to:

  1. Map all your domains to a single cloudapp.net subdomain using CNAME
  2. Automate the SSL certificate installation
  3. Automate the HTTPS binding creation in IIS with SSL SNI hostheaders

I'm a Microsoft Technical Evangelist and I have posted a detailed explanation and a sample "plug & play" source-code at: http://www.vic.ms/microsoft/windows-azure/multiples-ssl-certificates-on-windows-azure-cloud-services/

2

Since you want to present the same web site to all these domains, you should be OK with HTTP connections - just set each one up as a CNAME to the Azure web endpoint. I guess HTTPS is a bit trickier, but this post indicates you will need a "multi domain certificate" (see Google). I have not tried it, but presumably this certificate can be uploaded to Azure in the usual way. I have just noticed that your question appears to be a duplicate of of this one. I am also adding my answer there.

Community
  • 1
  • 1
Oliver Bock
  • 4,829
  • 5
  • 38
  • 62