1 <% @_access_logs.each do |log| -%>
2 <% env ||= "env=#{log['env']}" if log['env'] -%>
4 <% format ||= "\"#{log['format']}\"" if log['format'] -%>
5 <% format ||= 'combined' -%>
7 <% if log['file'].chars.first == '/' -%>
8 <% destination = "#{log['file']}" -%>
10 <% destination = "#{@logroot}/#{log['file']}" -%>
12 <% elsif log['syslog'] -%>
13 <% destination = "syslog" -%>
14 <% elsif log['pipe'] -%>
15 <% destination = log['pipe'] -%>
17 <% destination ||= "#{@logroot}/#{@name}_access_ssl.log" if @ssl -%>
18 <% destination ||= "#{@logroot}/#{@name}_access.log" -%>
20 CustomLog "<%= destination %>" <%= format %> <%= env %>