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

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

1 Answer 1

up vote 5 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

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.