标签:ext cal root 切割 erro document tom bsp 配置
日志切割主要使用 apache 的 rotatelogs 工具,如下,按每天切割一次(即86400秒)
[root@localhost ~]# vim /usr/local/apache2/conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "/data/www"
ServerName www.test.com
ErrorLog "|/usr/local/apache2/bin/rotatelogs -l /usr/local/apache2/logs/test.com_error_%Y%m%d_log 86400"
CustomLog "|/usr/local/apache2/bin/rotatelogs -l /usr/local/apache2/logs/test.com_access_%Y%m%d_log 86400" combined
</VirtualHost>
标签:ext cal root 切割 erro document tom bsp 配置
原文地址:http://www.cnblogs.com/pzk7788/p/7040425.html