apache的日志按日期分割如何写啊?
ErrorLog "|bin/rotatelogs -l logs/error_%Y%m%d.log 86400"CustomLog "|bin/rotatelogs -l logs/access_%Y%m%d.log 86400" combined
虚拟主机配置文件中的使用方法
ServerAdmin webmaster@localhost
DocumentRoot "E:/htdocs"
ServerName localhost
ErrorLog "|bin/rotatelogs -l logs/localhost/error_%Y%m%d.log 86400"
CustomLog "|bin/rotatelogs -l logs/localhost/access_%Y%m%d.log 86400" combined
这样改的话apache 启动不了啊 这样应该可以吧,报什么错误?
页:
[1]