apache 日志为每个域名独立配置单独的日志文件

<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下面的配置大同小异

上一篇:android之ListPreference的用法_PreferenceActivity用法


下一篇:【前端】提取URL中的各个GET参数