From 745390eea52a7a3b69ff9931c8c5437059812419 Mon Sep 17 00:00:00 2001 From: madhatter Date: Tue, 7 Jun 2022 14:22:38 +0200 Subject: [PATCH] Add rewrite in section --- apache/config/vhosts/standard.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apache/config/vhosts/standard.tmpl b/apache/config/vhosts/standard.tmpl index b1b2f75..f32c70e 100644 --- a/apache/config/vhosts/standard.tmpl +++ b/apache/config/vhosts/standard.tmpl @@ -90,6 +90,7 @@ 'Require': dir.get('Require', vals.Directory.Require), 'AllowOverride': dir.get('AllowOverride', vals.Directory.AllowOverride), 'Dav': dir.get('Dav', False), + 'Rewrite': dir.get('Rewrite', False), } %} {%- if path == 'default' %}{% set path = vals.Directory_default %}{% endif %} @@ -105,6 +106,10 @@ {% if dvals.get('AllowOverride') != False %}AllowOverride {{ dvals.AllowOverride }}{% endif %} {% if dvals.get('Dav') != False %}Dav On{% endif %} + {% if dvals.get('Rewrite') %}RewriteEngine on + {{ dvals.Rewrite|indent(8) }} + {%- endif %} + {%- if dir.get('Formula_Append') %} {{ dir.Formula_Append|indent(8) }} {%- endif %}