DevHeads.net

Postings by craig

How to auto-select SSL certificate by hostname

I am trying to configure a server that has the singular purpose of
redirecting <a href="https://anyhost.com" title="https://anyhost.com">https://anyhost.com</a> to <a href="https://www.anyhost.com" title="https://www.anyhost.com">https://www.anyhost.com</a>. Without SSL,
this is trivial: create a single configuration that uses Rewrite to redirect
to www.{%HOST}.

Bringing SSL into it complicates things however. We'll be doing redirects
for 1000+ domains, so managing hostname --> certificate mappings with VHosts
is a challenge. We can fit 100 names on each certificate, so we'll need to
handle at minimum 10 certificates.