<VirtualHost *:80>
DocumentRoot "E:\luyou\viplijiang"
ServerName vip.li.com
TransferLog "| E:/apache/bin/rotatelogs E:/apache/logs/viplijiang/%Y_%m_%d_access_log 86400 480"
ErrorLog "| E:/apache/bin/rotatelogs E:/apache/logs/viplijiang/%Y_%m_%d_error_log 86400 480"
</VirtualHost>
TransferLog "| E:/apache/bin/rotatelogs E:/apache/logs/viplijiang/%Y_%m_%d_access_log 86400 480"
ErrorLog "| E:/apache/bin/rotatelogs E:/apache/logs/viplijiang/%Y_%m_%d_error_log 86400 480"
重点是这2个参数的配置 大家可以根据自己的实际情况修改 linux下面的配置大同小异