瀏覽代碼

Merge pull request #12 from Jorge-Rodriguez/master

CustomLog directive takes two parameters. Introduced LogFormat variable ...
tags/v0.37.4
Seth House 11 年之前
父節點
當前提交
88d16e419a
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      apache/vhosts/standard.tmpl

+ 2
- 1
apache/vhosts/standard.tmpl 查看文件

@@ -14,6 +14,7 @@

'LogLevel': site.get('LogLevel', 'warn'),
'ErrorLog': site.get('ErrorLog', '{0}/{1}-error.log'.format(map.logdir, sitename)),
'LogFormat': site.get('LogFormat', '"%h %l %u %t \\\"%r\\\" %>s %O"'),
'CustomLog': site.get('CustomLog', '{0}/{1}-access.log'.format(map.logdir, sitename)),

'DocumentRoot': site.get('DocumentRoot', '{0}/{1}'.format(map.wwwdir, sitename)),
@@ -39,7 +40,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 }}{% endif %}
{% if site.get('CustomLog') != False %}CustomLog {{ vals.CustomLog }} {{ vals.LogFormat }}{% endif %}

{% if site.get('DocumentRoot') != False %}DocumentRoot {{ vals.DocumentRoot }}{% endif %}
{% if site.get('VirtualDocumentRoot') %}VirtualDocumentRoot {{ vals.VirtualDocumentRoot }}{% endif %}

Loading…
取消
儲存