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

We have bought an SSL certificate for

Users will be accessing the domain at,, etc.

I would like to be able to redirect those subdomains, via Apache. So for instance, becomes

Is this possible to do without presenting the user with a "Insecure Connection" error?

share|improve this question

If you purchased a wildcard certificate for * or had and listed as Subject Alternative Names on the certificate, you'll be fine. If you bought the cert just for, then you're out of luck. The users will always see it, since the cert is not valid for that sub-domain and is only valid for*.

share|improve this answer

No, because the SSL connection is setup before apache receives the hostname the connection is made with.

You can use to obtain certificates for free. At least:

  • one domain for free (or two, if you include and (www you get for free).
  • Once you have paid for level 1 and 2 validation, you can request as many multi-domain certificates as you want.

This is not really of help though, because you can't put multiple certificates on the same IP. You could only do this with a multi domain certificate or a wildcard certificate (but wildcard certificates have their limitations).

share|improve this answer

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.