Debian Sarge comes with an apache2 package. I thought I'd give this a go to get it working with a self signed SSL certificate. However, I had little idea of what I was doing. Eventually I worked it out - and it's easy:
- Logon or su as root
- Run:
apt-get install apache2
- Run the script
apache2-ssl-certificate
and tell it what it wants to know. - Make a copy of '/etc/apache2/sites-available/default' - call it something like 'ssl'
- Make a sym-link to this new site configuration from /etc/apache2/sites-enabled/ You will see this is already done for 'default'.
- Add a
Listen 443
to /etc/apache2/ports.conf - Edit /etc/apache2/sites-available/ssl (or whatever you called your new ssl site's config) and change port 80 in the name of the site to 443.
- Add a Line
SSLEngine On
somewhere in the body of the config file. - Add a Line
SSLCertificateFile /etc/apache2/ssl/apache.pem
somewhere in the body of the config file. - Restart apache