Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.