FreeBSD

Rotating Apache httpd logfiles on FreeBSD

Published on Thu, 2009-10-08 - 14:27

With the disk space available on modern servers, you tend to notice some things a lot less. Like the boring fact that without log rotation, an Apache access log can grow to gigabyte size in no time.

FreeBSD's Apache HTTPD port does not ship with configuration for the FreeBSD log rotation utility, newsyslog, so your logs won't be rotated by default.

That, however, is fairly easy to fix by tweaking /etc/ newsyslog.conf a bit.

Here's how I did it:

Tags
Subscribe to FreeBSD