blob: 136508f1f7a38e92a24eebf5cbe1f85e0f989b79 (
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 -%>
|