Rotating web server logs without restarting Apache
Holger Kipp
hk at alogis.com
Sat Nov 26 00:51:41 GMT 2005
On Fri, Nov 25, 2005 at 05:09:25PM +0000, Gerald de la Pascua wrote:
> loose entries? what in the window between the copy and the restart?
Yes.
> would the scheme you suggest work with individual logfiles for individual
> domains?
You can use the CustomLog directive per virtual server. You could also
set environment variables depending on the request and use that to
log to different files, eg to ignore local referreres etc.
You might find the man page for CustomLog worth reading, too:
http://httpd.apache.org/docs/1.3/mod/mod_log_config.html#customlog
http://httpd.apache.org/docs/2.0/mod/mod_log_config.html#customlog
Regards,
Holger Kipp
alogis AG, Berlin
More information about the freebsd-stable
mailing list