From 5311e868eec23439be71d691a06bab08cd92f506 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Fri, 21 Jul 2017 14:57:05 +0100 Subject: [PATCH] chenged forwarding to allow http as well too --- templates/httpd/forward_conf.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/httpd/forward_conf.erb b/templates/httpd/forward_conf.erb index b682fd5..bc30b1e 100644 --- a/templates/httpd/forward_conf.erb +++ b/templates/httpd/forward_conf.erb @@ -3,7 +3,12 @@ DocumentRoot /var/www/html ServerName www.<%= @ng_nagios_server %> ServerAlias <%= @ng_nagios_server %> +<% if @ng_use_https == true -%> Redirect permanent / https://<%= @ng_nagios_server %>/nagios +<% end -%> +<% if @ng_use_https != true -%> + Redirect permanent / http://<%= @ng_nagios_server %>/nagios +<% end %> AllowOverride All