diff --git a/apache/vhosts/minimal.tmpl b/apache/vhosts/minimal.tmpl index 98fab2f..38545cb 100644 --- a/apache/vhosts/minimal.tmpl +++ b/apache/vhosts/minimal.tmpl @@ -28,5 +28,7 @@ {% 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 -%}LogFormat {{ vals.LogFormat }} {{ sitename }} + CustomLog {{ vals.CustomLog }} {{ sitename }}{% endif %} diff --git a/apache/vhosts/proxy.tmpl b/apache/vhosts/proxy.tmpl index af791a1..b762a9e 100644 --- a/apache/vhosts/proxy.tmpl +++ b/apache/vhosts/proxy.tmpl @@ -40,7 +40,9 @@ {% 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 -%}LogFormat {{ vals.LogFormat }} {{ sitename }} + CustomLog {{ vals.CustomLog }} {{ sitename }}{% endif %} {% if site.get('SSLCertificateFile') %}SSLEngine on SSLCertificateFile {{ site.SSLCertificateFile }} diff --git a/apache/vhosts/redirect.tmpl b/apache/vhosts/redirect.tmpl index 024cf36..af86ea1 100644 --- a/apache/vhosts/redirect.tmpl +++ b/apache/vhosts/redirect.tmpl @@ -32,7 +32,9 @@ {% 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 -%}LogFormat {{ vals.LogFormat }} {{ sitename }} + CustomLog {{ vals.CustomLog }} {{ sitename }}{% endif %} Redirect {{ vals.RedirectSource }} {{ vals.RedirectTarget }} diff --git a/apache/vhosts/standard.tmpl b/apache/vhosts/standard.tmpl index d37c796..30684b0 100644 --- a/apache/vhosts/standard.tmpl +++ b/apache/vhosts/standard.tmpl @@ -53,7 +53,8 @@ {% if site.get('LogLevel') != False -%}LogLevel {{ vals.LogLevel }}{% endif %} {% if site.get('ErrorLog') != False -%}ErrorLog {{ vals.ErrorLog }}{% endif %} {% if site.get('LogFormat') != False -%}LogFormat {{ vals.LogFormat }}{% endif %} - {% if site.get('CustomLog') != False -%}CustomLog {{ vals.CustomLog }} {% endif %} + {% if site.get('CustomLog') != False -%}LogFormat {{ vals.LogFormat }} {{ sitename }} + CustomLog {{ vals.CustomLog }} {{ sitename }}{% endif %} {% if site.get('DocumentRoot') != False -%}DocumentRoot {{ vals.DocumentRoot }}{% endif %} {% if site.get('VirtualDocumentRoot') -%}VirtualDocumentRoot {{ vals.VirtualDocumentRoot }}{% endif %}