From 5fea96a6a26209da487f9d045c77bba178220a8f Mon Sep 17 00:00:00 2001 From: thomas Senay Date: Mon, 13 Nov 2017 10:41:25 +0100 Subject: [PATCH] Split Logformat and CustomLog Directive to avoid syntax error on RedHat --- apache/vhosts/standard.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apache/vhosts/standard.tmpl b/apache/vhosts/standard.tmpl index 97bff80..d37c796 100644 --- a/apache/vhosts/standard.tmpl +++ b/apache/vhosts/standard.tmpl @@ -52,7 +52,8 @@ {% if site.get('LogLevel') != False -%}LogLevel {{ vals.LogLevel }}{% endif %} {% if site.get('ErrorLog') != False -%}ErrorLog {{ vals.ErrorLog }}{% endif %} - {% if site.get('CustomLog') != False -%}CustomLog {{ vals.CustomLog }} {{ vals.LogFormat }}{% endif %} + {% if site.get('LogFormat') != False -%}LogFormat {{ vals.LogFormat }}{% endif %} + {% if site.get('CustomLog') != False -%}CustomLog {{ vals.CustomLog }} {% endif %} {% if site.get('DocumentRoot') != False -%}DocumentRoot {{ vals.DocumentRoot }}{% endif %} {% if site.get('VirtualDocumentRoot') -%}VirtualDocumentRoot {{ vals.VirtualDocumentRoot }}{% endif %}