diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/site.erb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/site.erb b/templates/site.erb index 20546f5..3bb32a2 100644 --- a/templates/site.erb +++ b/templates/site.erb @@ -33,6 +33,12 @@ <% if @custom_directives != false -%> <%= @custom_directives %> <% end -%> +<% if @custom_log != false -%> + CustomLog "/var/log/apache2/<%= @name %>-access.log" <%= @custom_log_format %> +<% end -%> +<% if @error_log != false -%> + ErrorLog /var/log/apache2/<%= @name %>-error.log +<% end -%> <% if @allow_override != false %> <Directory <%= @docroot %>> AllowOverride <%= @allow_override %> @@ -72,6 +78,12 @@ <% if @custom_directives != false -%> <%= @custom_directives %> <% end -%> +<% if @custom_log != false -%> + CustomLog "/var/log/apache2/<%= @name %>-access.log" <%= @custom_log_format %> +<% end -%> +<% if @error_log != false -%> + ErrorLog /var/log/apache2/<%= @name %>-error.log +<% end -%> <% if @allow_override != false %> <Directory <%= @docroot %>> AllowOverride <%= @allow_override %> |