Skip to content

Instantly share code, notes, and snippets.

@fideloper
Last active December 29, 2015 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fideloper/3982619 to your computer and use it in GitHub Desktop.
Save fideloper/3982619 to your computer and use it in GitHub Desktop.
Ubuntu Apache Default logrotate config
/var/log/apache2/*.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
if /etc/init.d/apache2 status > /dev/null ; then \
/etc/init.d/apache2 reload > /dev/null; \
fi;
endscript
prerotate
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
run-parts /etc/logrotate.d/httpd-prerotate; \
fi; \
endscript
}
@bhupeshssaladi
Copy link

this code working or not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment