From 2142ab99f1e13f36d1baca3efb6ed75535ed5f95 Mon Sep 17 00:00:00 2001 From: emeygret Date: Tue, 12 Dec 2017 11:35:14 +0100 Subject: [PATCH] Add RedirectMatch option in pillar add RedirectMatch: true --- apache/vhosts/redirect.tmpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apache/vhosts/redirect.tmpl b/apache/vhosts/redirect.tmpl index 024cf36..20ab2c5 100644 --- a/apache/vhosts/redirect.tmpl +++ b/apache/vhosts/redirect.tmpl @@ -34,8 +34,12 @@ {% if site.get('ErrorLog') != False %}ErrorLog {{ vals.ErrorLog }}{% endif %} {% if site.get('CustomLog') != False %}CustomLog {{ vals.CustomLog }} {{ vals.LogFormat }}{% endif %} + {% if site.get('RedirectMatch') %} + RedirectMatch {{ vals.RedirectSource }} {{ vals.RedirectTarget }} + {% else %} Redirect {{ vals.RedirectSource }} {{ vals.RedirectTarget }} - + {% endif %} + {% if site.get('Formula_Append') %} {{ site.Formula_Append|indent(4) }} {% endif %}