View Single Post
Old 11-30-2012, 02:15 PM   PM User | #1
XmisterIS
Regular Coder

 
Join Date: Jun 2010
Posts: 241
Thanks: 51
Thanked 6 Times in 6 Posts
XmisterIS is an unknown quantity at this point
Can't get SSL working on Apache2.2

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 *:80 and NameVirtualHost *:443 into /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 ...

Any ideas?

I'm stumped ...

Last edited by XmisterIS; 11-30-2012 at 02:36 PM..
XmisterIS is offline   Reply With Quote