Add rewrite in <Directory> section

This commit is contained in:
madhatter 2022-06-07 14:22:38 +02:00
parent d4cab05532
commit 745390eea5
No known key found for this signature in database
GPG Key ID: 7EE70578CD19211E

View File

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