Re: apache
On Tue, 2003-06-10 at 11:07, Martynas Domarkas wrote:
[...]
>
> Thanks, but I realy do not like instalation of another packages. There
> must be a way to do this with apache configuration.
You could add a line to your /etc/logrotate.d/apache configuration,
so it would look something like this:
[...]
postrotate
/etc/init.d/apache reload > /dev/null
mv -f $1.0 $1.`date +"%Y-%m-%d"`
endscript
[...]
This would rename access.log.0 to access.log.2003-06-10
Regards,
Teun Vink
Reply to:
- References:
- apache
- From: Martynas Domarkas <md@hansa.lt>
- Re: apache
- From: Jamie Heilman <jamie@audible.transient.net>
- Re: apache
- From: Martynas Domarkas <md@hansa.lt>