This is the default example configuration of apache2 provided by Apache. This config file was generated by Apache running on Alpine 3.
It is located under: /etc/logrotate.d/apache2
/var/log/apache2/*log {
missingok
notifempty
sharedscripts
delaycompress
postrotate
/etc/init.d/apache2 --quiet --ifstarted reload > /dev/null 2>/dev/null || true
endscript
}
Download the raw file with wget or curl
wget -O apache2.example http://exampleconfig.com/static/raw/apache/alpine3/etc/logrotate.d/apache2
curl http://exampleconfig.com/static/raw/apache/alpine3/etc/logrotate.d/apache2 > apache2.example
Other config files you might find useful