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

Why is it that some of the directives in ssl configuration are placed withing a virtual host section? if one decides to just support one website in a server, couldn't all SSL configuration just be placed in the global server context?

share|improve this question

Sure, if you want every port that Apache listens on to be running SSL, then SSLEngine On, etc. in the server context makes sense.

For the most part, people want to have a non-encrypted listener (if only to redirect to the encrypted one), so most example you see take that into account and place the config in the virtual host context.

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.