httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zbigniew Szalbot <>
Subject Re: [users@httpd] rotatelogs based on size and time?
Date Wed, 13 Aug 2008 06:06:44 GMT

Thank you for such a prompt answer! I have some questions below.

Agnello George:
> yes its possible
> you would just need to add in your /etc/logrotate.conf  the following content :
> "/websites/"
> /websites/ {
I would need to add "monthly" in here, wouldn't I?

> rotate 4
> size= 50
size=50M if I want to use megabytes?

> sharedscripts
This will cause only one apache restart?

> postrotate
> /sbin/killall -HUP httpd
Is this the graceful way to restart apache?

Can I add "olddir" in here?
olddir = /path/to/dir

When set, do I understand correctly that it will set a directory where 
logs will be moved prior to being rotated?

> endscript
> }
> i kind of written a small scrit to add /delete /edit the
> logrotate.conf for virtual domains (  i give no grauntee that it will
> work for you ) ( suggestion welcomed )

Thank you for all your input! It is really appreciated!


Zbigniew Szalbot

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message