Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 my server set up to use SSL in a separate VirtualHost, but when I attempt to use https://my.domain, I get a connection refused error. The following is my config I'm using:

    DocumentRoot /home/tristan/bb0_www/api

    DocumentRoot /home/tristan/bb0_www/api
    SSLEngine on
    SSLCertificateFile /etc/apache2/bb0_cert/bb0.crt
    SSLCertificateKeyFile /etc/apache2/bb0_cert/private.key
    SSLCACertificateFile /etc/apache2/bb0_cert/root.crt

If you do try to go to everything will work, but when you attempt, it will not work. I don't have ufw or anything else blocking this, so I'm confused why this is not working. I've tried to add a NameVirtualHost, but that didn't do anything in fixing this.

Anyone have any ideas what may be causing this?

share|improve this question
up vote 7 down vote accepted

Have you enabled Apache's SSL module? If not, running the following commands should do the trick:

sudo a2enmod ssl
sudo service apache2 restart

If mod_ssl is not loaded, then Apache won't listen on port 443 by default or SSL connections.

share|improve this answer
Ahhhh! I'm totally overlooked that. Thanks! – Tristan Seifert Jul 7 '11 at 12:54
Unbelievable. Wasted about an hour trying to figure this out just because none of the "top results" said to a2enmod ssl. – Matt Borja Dec 12 '15 at 14:33

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.