httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Thompson <and...@fulgent.co.uk>
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
</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:mark@catseye.org] 
Sent: 04 December 2012 15:48
To: Andrew Thompson
Cc: users@httpd.apache.org
Subject: Re: [users@httpd] My SSL Certificate is not working properly

On December 4, 2012 10:44 , Andrew Thompson <andrew@fulgent.co.uk> 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
   mark@catseye.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message