From bf66e749d1526cc1ee7f44d9b789a494d40242df Mon Sep 17 00:00:00 2001 From: dexbleeker Date: Tue, 18 Oct 2016 21:48:59 +0200 Subject: [PATCH] Append slash to RedirectTarget (#161) --- apache/vhosts/redirect.tmpl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apache/vhosts/redirect.tmpl b/apache/vhosts/redirect.tmpl index ff1c5ec..024cf36 100644 --- a/apache/vhosts/redirect.tmpl +++ b/apache/vhosts/redirect.tmpl @@ -1,8 +1,8 @@ {# Define default values here so the template below can just focus on layout #} -{% from "apache/map.jinja" import apache with context %} -{% set sitename = site.get('ServerName', id) %} +{%- from "apache/map.jinja" import apache with context %} +{%- set sitename = site.get('ServerName', id) %} -{% set vals = { +{%- set vals = { 'interfaces': site.get('interface', '*').split(), 'port': site.get('port', '80'), @@ -19,8 +19,7 @@ 'CustomLog': site.get('CustomLog', '{0}/{1}-access.log'.format(map.logdir, sitename)), 'RedirectSource': site.get('RedirectSource', '/'), - 'RedirectTarget': site.get('RedirectTarget', 'https://{0}'.format(sitename)), - + 'RedirectTarget': site.get('RedirectTarget', 'https://{0}/'.format(sitename)), } %}