#错误日志
ErrorLog "logs/dummy-host2.example.com-error_log"
#访问日志
CustomLog "logs/dummy-host2.example.com-access_log" common

其中common/combined 表示日志格式


切割:在虚拟主机配置文件访问日志上进行如下添加
在CustomLog "|/usr/local/apache2/bin/rotatelogs -l /usr/local/apache2/logs/dd.com-access_%Y%m%d_log 86400"
combined
从而使得日志每天生成一个。

日志格式定义在:
/usr/local/apache2/conf/httpd.conf

相关文章:

  • 2022-12-23
  • 2021-06-29
  • 2021-08-27
  • 2022-01-23
  • 2021-09-12
  • 2021-11-04
  • 2021-08-09
猜你喜欢
  • 2022-12-23
  • 2021-12-22
  • 2021-08-09
  • 2022-01-06
  • 2021-07-18
  • 2021-08-23
  • 2021-11-28
相关资源
相似解决方案