summaryrefslogtreecommitdiff
path: root/templates/vhosts/partials/logs.erb
blob: 68403a86830d97a49906e5d99e0b606cc013247f (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 %>/<%= 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 -%>