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 using the same codebase for two websites. Both need to be accessible through SSL. Is this possible with just one apache vhost?

share|improve this question
up vote 2 down vote accepted

Yes and no.

One virtual host can only ever be configured with one SSL certificate.

Further, to have multiple different certificates on a single IP address, you'd be using TLS SNI, which is still not practical to rely on for public web sites due to the fact that IE on Windows XP is not compatible with it.

So, for a multiple SSL certificate deployment, you'll probably need an IP per certificate (and a virtual host for each IP)

However, one option for you may be a Subject Alternative Name certificate, sometimes also called a "Unified Communications" certificate by the certificate authority vendors. That would allow you to have a single certificate (and thus, a single virtual host) that works for both domains.

share|improve this answer
Not just IE on XP but also depressingly recent browsers such as the one on Blackberries and the previous version of the Android OS. – Ladadadada Dec 25 '12 at 22:05

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.