-/var/log/httpd/access_log {
- postrotate
- /usr/bin/killall -HUP httpd
- endscript
-}
-
-/var/log/httpd/agent_log {
- postrotate
- /usr/bin/killall -HUP httpd
- endscript
-}
-
-/var/log/httpd/error_log {
- postrotate
- /usr/bin/killall -HUP httpd
- endscript
-}
-
-/var/log/httpd/referer_log {
- postrotate
- /usr/bin/killall -HUP httpd
+/var/log/httpd/*access_log
+/var/log/httpd/*combined_log
+/var/log/httpd/*agent_log
+/var/log/httpd/*error_log
+/var/log/httpd/*referer_log
+/var/log/httpd/*request_log
+/var/log/httpd/*rewrite_log
+{
+ olddir /var/log/archive/httpd
+ sharedscripts
+ postrotate
+ /sbin/service httpd flush-logs > /dev/null
endscript
}