Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to redirect users to a subdomain in server2 if they make an https request to server1. I only have one certificate, and that's installed on server2.

So for instance, from (server1) to (server2)

My best guess is that I will need a certificate for as the hostname is encrypted inside the HTTP header so my server won't know to redirect until it's decrypted. However, I'm curious if this is possible without two certificates?

share|improve this question
up vote 1 down vote accepted

Yes, it is possible with one certificate, it just needs to have two subjectAltName parameters, one for and I do wonder why you would redirect someone to an SSL-specific subdomain if you've already got them using SSL on the main domain...

share|improve this answer
Mainly I was thinking in the case that a user types If they follow the links within, then it will automatically send them to My other question would be, server1 is a name based server (virtualhosts) (1 IP), so using SAN could create conflicts/warnings between the other sites. is that correct? – Sean K. Jul 8 '12 at 5:17
Why have at all, though? Why not just run all your SSL through, if you've got a cert for it. You'll have conflicts with other name-based virtual hosts on the same IP regardless of whether you're using sAN; there's no way to avoid that. – womble Jul 8 '12 at 5:22
I agree with you, using only www would be the way to go. Thanks! – Sean K. Jul 8 '12 at 5:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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