Apache Web服务器日志轮换问题

Apache Web服务器日志轮换问题,apache,unix,Apache,Unix,我在apache中有如下虚拟主机配置 <VirtualHost *:80> ServerName www.example.org DocumentRoot /www/example ServerAdmin tin@ex.com ErrorLog "|/usr/sbin/rotatelogs /www/logs/example/error_log.%Y%m%d 7776000" CustomLog "|/usr/sbin/rotatelogs /www/logs/example/acc

我在apache中有如下虚拟主机配置

<VirtualHost *:80>
ServerName www.example.org
DocumentRoot /www/example
ServerAdmin tin@ex.com
ErrorLog "|/usr/sbin/rotatelogs /www/logs/example/error_log.%Y%m%d 7776000"
CustomLog "|/usr/sbin/rotatelogs /www/logs/example/access_log.%Y%m%d 7776000" common
</VirtualHost> 
在这里,我有0字节的日志文件,它没有保存今天的日志内容。获取此安装程序的0字节日志文件的原因是什么。如何进行配置 它可以使today logs文件内容不包含0字节

多谢各位

-rw-r--r-- 1 root     root   1K   Jun 07 02:17 error_log.20140701-20140707.gz
-rw-r--r-- 1 root     root     0 Jun 07 02:17 error_log.20140707
-rw-r--r-- 1 root     root   17K Jun 07 02:28 access_log.20140701-20140707.gz
-rw-r--r-- 1 root     root     0 Jun 07 02:28 access_log.20140707