Dave McCammon wrote:
--- fbsd_user <[EMAIL PROTECTED]> wrote:
Can apache logs be rotated by /etc/newsyslog.conf?
If not, how is it normally done?


Here is the relevent portion of my newsyslog.conf

/var/log/httpd-access.log 640 14 * $D0 Z /var/run/httpd.pid
/var/log/httpd-error.log 640 14 * $D0 Z /var/run/httpd.pid

"man newsyslog" for more info on the fields.

Just a hint in case you plan on running a web statistics program over the access log: add 'B' to the flags column for 'httpd-access.log', resulting in 'BZ'. This will omit the 'logfile turned over due to ...' lines generated by 'newsyslog', which the statistics program may otherwise complain about.

Uwe Doering         |  EscapeBox - Managed On-Demand UNIX Servers
[EMAIL PROTECTED]  |  http://www.escapebox.net
[EMAIL PROTECTED] mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to