]> git.openstreetmap.org Git - chef.git/blob - cookbooks/web/templates/default/logrotate.apache.erb
Use mod_proxy_fcgi for FCGI support with apache 2.4
[chef.git] / cookbooks / web / templates / default / logrotate.apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 /var/log/apache2/*.log {
4   daily
5   missingok
6   rotate 28
7   compress
8   delaycompress
9   notifempty
10   create 640 root adm
11   sharedscripts
12   postrotate
13     /usr/bin/service apache2 reload > /dev/null
14     /usr/bin/rsync /var/log/apache2/access.log.2.gz ironbelly::logs/www.openstreetmap.org/<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.gz
15   endscript
16 }