Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 have a VirtualHost directive (virtualhost x.x.x.x:80 x.x.x.x:443) that listens for connections on both port 80 and port 443, how can I enable SSL only on port 443 within that directive?

share|improve this question
up vote 4 down vote accepted

You want to create two separate VirtualHosts using separate VirtualHost directives, one for port 80 and one for port 443. Provide the SSL stuff only in your port 443 definition. You can Include the same configuration into both by splitting the common directives into a separate configuration file.

share|improve this answer
Right yep, ended up going down this road. Thanks! – Joe Jan 15 '11 at 21:07

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.