From 15314ee92924cd32df2c4671dcf17b5df38e3769 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 21 Jun 2018 13:24:52 -0300 Subject: Adds custom_log, custom_log_format and error_log params at apache::site --- templates/site.erb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'templates/site.erb') 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 %> > 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 %> > AllowOverride <%= @allow_override %> -- cgit v1.2.3