RE: My SSL Certificate is not working properly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx] 
Sent: 04 December 2012 15:48
To: Andrew Thompson
Cc: users@xxxxxxxxxxxxxxxx
Subject: Re:  My SSL Certificate is not working properly

On December 4, 2012 10:44 , Andrew Thompson <andrew@xxxxxxxxxxxxx> 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@xxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux