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
</VirtualHost>


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 page) 
the main https://domain is fine, padlock and displays the cert info.

Kind Regards
Andrew

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

On December 4, 2012 10:44 , Andrew Thompson <[email protected]> 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
   [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to