title: Multiple subdomains with SSL under IIS
body: <p>I currently need to have 2 subdomains under the same domain under SSL.<br>
  Both subdomains (www and affiliate) are on the same IIS server, under the same IP, and each one has specified a host header value (www.mydomain.com and affiliate.mydomain.com)</p>
  
  <p>The first subdomain (www), which is the default, works great, with and without SSL.<br>
  The second subdomain works perfect under HTTP.  </p>
  
  <p>The problem is that I just purchased and installed the SSL certificate for the affiliate subdomain, and when you go to <a href="https://affiliate.mydomain.com" rel="noreferrer">https://affiliate.mydomain.com</a>, you get redirected to <a href="http://www.mydomain.com" rel="noreferrer">http://www.mydomain.com</a></p>
  
  <p>I'm guessing the problem lies in the fact that I can't specify a host header value for SSL? (the dialog where I normally set the host header value doesn't have that option in the bottom part, dedicated to SSL).</p>
  
  <p>What can I do about this?
  Should I have each subdomain in a separate IP?
  Is this not doable at all?</p>
  
  <p>Thanks!
  Daniel</p>