Apache的日志分割配置如下圖所示:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/home/webroot/tzb"
ServerName 192.168.1.2
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{x-forwarded-for}i\"" combined2
CustomLog "|/home/httpd-2.4.28/bin/rotatelogs -l /home/httpd-2.4.28/logs/tzb_log/tzb.com.access-%Y-%m-%d.log 86400" combined2
ErrorLog "|/home/httpd-2.4.28/bin/rotatelogs -l /home/httpd-2.4.28/logs/tzb_log/tzb.com.error-%Y-%m-%d.log 86400"
</VirtualHost>
但是其中的errorlog日志不是每天都生成,會存在某一天沒有日志檔案生成,這是什么情況?
等保測評的要求每天都要有日志生成,說這是高危漏洞,請教改如何修改組態檔。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/27096.html
標籤:應用服務器
