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 am running a Apache2 server with three subdomains defined in separate files in /etc/apache2/sites-available

I need ONE of those subdomains to be SSL-secured on port 80 for an application to work. Port 80 is required due to circumstances out of my control. The other subdomains are also on port 80.

Now, when all subdomains are enabled in Apache the SSL-subdomain is NOT running SSL. If I disable the other subdomains SSL on the SSL-subdomain WORKS.

Is there a way to fix this?

share|improve this question
up vote 0 down vote accepted

This is due to the way Apache listens for new connections and routes to the correct Virtual Host.

Apache will be explicitly listening for either an SSL connection or a plain-text connection, not both.

The only options would to move the secure operations to port 443 (as per spec), move the SSL-subdomain to a different IP address and bind port 80 to that, or SSL-enable the whole site with a wildcard certificate or SNI.

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.