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

1 Answer

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
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.