浏览代码

Add error_log

Oliver Davies 9 年之前
父节点
当前提交
3de8c915a0
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      templates/vhosts.j2

+ 3 - 0
templates/vhosts.j2

@@ -12,6 +12,9 @@ server {
     {% if vhost.access_log is defined %}
     access_log {{ vhost.access_log }};
     {% endif %}
+    {% if vhost.error_log is defined %}
+    error_log {{ vhost.error_log }} error;
+    {% endif %}
 
     {% if vhost.return is defined %}
     return {{ vhost.return }};