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 configure apache 2.2 so that I can use two IPs. One for name based virtual hosts which should all use the same ssl-key and the other one for just one ip based host which should be using an other ssl-key. But it seems that when ever I get either the ip based or name based host to work the other one breaks.

Can someone tell me how to do this on a debian system or at least point me in the right direction?


share|improve this question
up vote 1 down vote accepted

SSL does not allow you to run name based virtual hosts. This is because the header section that contains the virtual hostname request is encrypted with the rest of the page request. Therefore, the webserver cannot determine what virtual host you are asking for until it decrypts your request; a real chicken and egg situation. This is why there is a limitation of one SSL Certificate per IP Address.

share|improve this answer
Actually modern browsers and web servers support this through SNI. – joschi Apr 14 '10 at 5:51
Yes, this is true, but does every person using the internet use a modern browser? – monkee Apr 14 '10 at 11:33

You are probably specifying the vhosts as *:443 not IP:443

What comes up in the apache error logs?

share|improve this answer

After fiddling the conf files for some time it seems to work now, the mixing ip- and name-based part of the problem that is. As for the ssl part I think I'll wait for Debian to update apache.

Thanks for your effort.

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.