I'm running Apache 2.2 on Debian 6.
I'm trying to get SSL up and running on my development server (i.e. it's only available on my home LAN), but no dice!
Interestingly, there are various tutorials out there, many of which seem to be at best slightly incongruent and at worst downright conflicting!
Mostly, I've been following the tutorial here: http://www.debianadmin.com/install-a...bian-etch.html
So here's how I get on with it, bit-by-bit. At each stage I am carefully and slowly following the instructions:
1) Install PHP5 support for apache2 in debian etch. Already done. No need to re-do..
2) Generate A certificate. Done. No problems.
3) Enable SSL Support. Done. No problems.
4) Configuring SSL Certificate to Virtual Hosts in Apache2. Houston, we have a problem!
Yup, this is where it all starts to go horribly wrong.
Firstly, there is no line
NameVirtualHost *in /etc/apache2/sites-available/default. (See the instructions that I've been using to understand my confusion here).
So, I put
NameVirtualHost *:443into /etc/apache2/sites-available/default anyway, and then follow the remaining steps.
when I try to restart the web server, I get the following error:
Reloading web server config: apache2[Fri Nov 30 13:54:38 2012] [warn] NameVirtualHost *:443 has no VirtualHosts
[Fri Nov 30 13:54:38 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
Of course, the error goes away when I remove the new lines of code in /etc/apache2/sites-available/default, but SSL doesn't work either ...
I'm stumped ...