blob: 4fe1b0a609f1efb2d30549e0fafa1cc677c9169d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<% case @logmode.to_s
when 'nologs' -%>
ErrorLog /dev/null
CustomLog /dev/null %%
<% when 'noaccess' -%>
ErrorLog <%= @logdir %>/<%= @logprefix %>error_log
CustomLog /dev/null noip
<% when 'semianonym' -%>
ErrorLog <%= @logdir %>/<%= @logprefix %>error_log
CustomLog <%= @logdir %>/<%= @logprefix %>access_log noip
<% when 'anonym' -%>
ErrorLog /dev/null
CustomLog <%= @logdir %>/<%= @logprefix %>access_log noip
<% else -%>
ErrorLog <%= @logdir %>/<%= @logprefix %>error_log
CustomLog <%= @logdir %>/<%= @logprefix %>access_log combined
<% end -%>
|