summaryrefslogtreecommitdiff
path: root/templates/vhosts/partials/logs.erb
blob: 650b204416b1b1f28c49c32518e5e69b1ddcb7d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<% case logmode.to_s
      when 'nologs' -%>
  ErrorLog /dev/null
  CustomLog /dev/null
<% when 'semianonym' -%>
  ErrorLog <%= logdir %>/error_log
  CustomLog <%= logdir %>/access_log noip
<% when 'anonym' -%>
  ErrorLog /dev/null
  CustomLog <%= logdir %>/access_log noip
<% else -%>
  ErrorLog <%= logdir %>/error_log
  CustomLog <%= logdir %>/access_log combined
<% end -%>