Browse Source

Add RedirectMatch option

in pillar add 
RedirectMatch: true
tags/v0.37.4
emeygret 7 years ago
parent
commit
2142ab99f1
No account linked to committer's email address
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      apache/vhosts/redirect.tmpl

+ 5
- 1
apache/vhosts/redirect.tmpl View File

@@ -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 %}

Loading…
Cancel
Save