7 ms·
I use the logrotate package, which is included with most distros. With Ubuntu, most packages include a logrotate configuration for themselves. For this specific
by jedsmith 16y ago
I use the logrotate package, which is included with most distros. With Ubuntu, most packages include a logrotate configuration for themselves. For this specific virtual host configuration, you could add your own logrotate instruction for it -- look in /etc/logrotate.d.
- akavlie 16y agoCool, thanks. That looks ideal -- it's already in use for the main Apache logs by default, just not for the sites I've configured under /srv/www/*. A single line added to the apache2 file under /etc/logrotate.d and I think all my logs are covered.