CharlyBr on Jun 4th, 2008Rotate Apache logs with Cronolog
Cronolog is log rotation program which gives you a lot of options to template the log destination files. The common use is to split logs by year / month / day.
Here is how to configure Apache to send log entries to cronolog :
CustomLog “|/usr/sbin/cronolog /home/log/apache2/%Y-%m-%d_domain.com_access.log” combined
This will create a log file named 2008-06-02_domain.com_access.log for today.
Cronolog [...]
CharlyBr on May 28th, 2008Deny access to .svn directories with Apache2 / lighttpd
If you’re using SVN to control your web application, your certainly need to deny access to .svn sub-directories.
With Apache2
<DirectoryMatch “^/.*/\.svn/”>
Order allow,deny
Deny from all
</DirectoryMatch>
With [...]