httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Thompson <>
Subject RE: [users@httpd] My SSL Certificate is not working properly
Date Tue, 04 Dec 2012 15:58:41 GMT
Ok so my /etc/apache2/sites-available/default 

File now starts:

<VirtualHost *:80>
		ServerAdmin 	webmaster@localhost
		Redirect /nagios https://domain/nagios

		DocumentRoot /var/www

And so on until the last line

This machine is purely for Nagios and has no other websites on it - only https://domain/nagios

This correct?

(restarted apache and didn't error this time - however still no padlock on the /nagios virtual
the main https://domain is fine, padlock and displays the cert info.

Kind Regards

-----Original Message-----
From: Mark Montague [] 
Sent: 04 December 2012 15:48
To: Andrew Thompson
Subject: Re: [users@httpd] My SSL Certificate is not working properly

On December 4, 2012 10:44 , Andrew Thompson <> wrote:
> I can confirm:
> 1 - The nagios.conf already had the RequireSLL entries. I have doubled checked this.
> 2 - I put that line in the default file so it looked like this:
> <VirtualHost *:80 Redirect /nagios https://domain/nagios>

The Redirect directive needs to go inside the VirtualHost stanza for your default HTTP virtual
host, just like all of the other directives you have for that virtual host.

<VirtualHost *:80>
     # other directives that you already have
     Redirect /nagios https://domain/nagios
     # other directives that you already have </VirtualHost>

   Mark Montague

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message