标签:
<VirtualHost *:80>
ServerAdmin chinasir.xyz@gmail.com
DocumentRoot /var/www/html/baidu
ServerName www.baidu.com
ErrorLog "|/var/sbin/rotatelogs /var/log/apache/error-%Y-%m-%d.log 86400"
CustomLog "|/var/sbin/rotatelogs /var/log/apache/access-%Y-%m-%d.log 86400" common
</VirtualHost>
# 限制错误日志文件为 1M
ErrorLog "|/server/apache/bin/rotatelogs /server/apache/logs/error-%Y-%m-%d.log 1M"
# 每天生成一个错误日志文件
ErrorLog "|/server/apache/bin/rotatelogs /server/apache/logs/error-%Y-%m-%d.log 86400"
# 限制访问日志文件为 1M
CustomLog "|/server/apache/bin/rotatelogs /server/apache/logs/access-%Y-%m-%d.log 1M" common
# 每天生成一个访问日志文件
CustomLog "|/server/apache/bin/rotatelogs /server/apache/logs/access-%Y-%m-%d.log 86400" common
标签:
原文地址:http://www.cnblogs.com/tiger2soft/p/4863603.html