[NBLUG/talk] Enabling SSL in Apache2?

Troy Arnold troy at zenux.net
Wed Aug 23 00:19:11 PDT 2006


On Sun, Aug 20, 2006 at 04:33:40PM -0700, Lincoln Peters wrote:
> On Sunday 20 August 2006 15:38, Troy Arnold wrote:
> > On Sun, Aug 20, 2006 at 03:24:24PM -0700, Lincoln Peters wrote:
> > > Here's something that should be a simple problem, but apparently isn't:
> > >
> > > I'm running Apache2 on Debian/testing.  I want to enable SSL globally for
> > > my website (i.e. anything you can do via HTTP, you can do via HTTPS).  I
> > > would expect this to be a simple matter of creating symlinks
> > > to /etc/apache2/mods-available/{ssl.load,ssl.conf}
> > > in /etc/apache2/mods-enabled, but that didn't seem to work (I get
> > > a "connection refused" error when connecting via SSL).  And as usual, the
> > > official Apache documentation on the matter is incredibly terse.
> > >
> > > So what am I missing?
> >
> > Do you have a Listen 443 in /etc/apache2/ports.conf ?
> 
> I didn't, but now that I fixed that, instead of "connection refused", I get no 
> response at all (i.e. the browser times out after no response whatsoever from 
> the server).
> 
> So maybe I was missing two or more things?

Hmm.  Hard to say without seeing your configs.  Anything interesting in the
logs?

Do you have a properly configured virtual host with SSL enabled?

Something like:
<VirtualHost 192.168.1.80:443>
SSLEngine on
SSLCertificateKeyFile /etc/apache2/ssl/secure.private.key
SSLCertificateFile /etc/apache2/ssl/secure.crt
SSLOptions +StdEnvVars
[...]
</VirtuaHost>




More information about the talk mailing list