Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
added redirect from 80 to 443.
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed May 9, 2014
1 parent ee8ee1f commit e7f763c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/nagios.vhost.j2
@@ -1,9 +1,17 @@
<VirtualHost *:80>
ServerAdmin {{nagios_admin_email}}
ServerName {{nagios_host}}
Redirect / https://{{nagios_host}}/
</VirtualHost>

<VirtualHost *:443>
ServerAdmin {{nagios_admin_email}}
ServerName {{nagios_host}}

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"

RedirectMatch ^/$ /nagios/

<Directory "/usr/local/nagios/sbin">
Options ExecCGI
AllowOverride None
Expand Down

0 comments on commit e7f763c

Please sign in to comment.