Browse Source

Add error_log

Oliver Davies 9 years ago
parent
commit
3de8c915a0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      templates/vhosts.j2

+ 3 - 0
templates/vhosts.j2

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