Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.