From e281a7ba827aed87e0c737461be4ed8bf8527f15 Mon Sep 17 00:00:00 2001 From: Daniel Hobley Date: Tue, 16 Feb 2016 11:53:49 +0100 Subject: [PATCH] Added Timeout and LimitRequestsFields to vhosts --- apache/vhosts/standard.tmpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apache/vhosts/standard.tmpl b/apache/vhosts/standard.tmpl index 562336e..8fad5a5 100644 --- a/apache/vhosts/standard.tmpl +++ b/apache/vhosts/standard.tmpl @@ -23,6 +23,9 @@ 'DocumentRoot': site.get('DocumentRoot', '{0}/{1}'.format(map.wwwdir, sitename)), 'VirtualDocumentRoot': site.get('VirtualDocumentRoot'), + 'Timeout': site.get('Timeout'), + 'LimitRequestFields': site.get('LimitRequestFields'), + 'Directory_default': '{0}/{1}'.format(map.wwwdir, sitename), 'Directory': { 'Options': '-Indexes +FollowSymLinks', @@ -55,6 +58,9 @@ {% if site.get('DocumentRoot') != False -%}DocumentRoot {{ vals.DocumentRoot }}{% endif %} {% if site.get('VirtualDocumentRoot') -%}VirtualDocumentRoot {{ vals.VirtualDocumentRoot }}{% endif %} + {% if site.get('Timeout') != False %}Timeout {{ vals.Timeout }}{% endif %} + {% if site.get('LimitRequestFields') %}LimitRequestFields {{ vals.LimitRequestFields }}{% endif %} + {%- if site.get('SSLCertificateFile') %} SSLEngine on SSLCertificateFile {{ site.SSLCertificateFile }}