瀏覽代碼

Merge pull request #118 from opdude/feature/add-fields

Added Timeout and LimitRequestsFields to vhosts
tags/v0.37.4
alxwr 8 年之前
父節點
當前提交
217b6caa64
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. +6
    -0
      apache/vhosts/standard.tmpl

+ 6
- 0
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 }}

Loading…
取消
儲存