
สร้าง log file (httpd) รายวันด้วย rotatelogs
ติดตั้ง rotatelog /usr/ports/sysutils/logrotate/ Edit httpd.conf CustomLog “|/usr/local/sbin/rotatelogs -l /var/log/httpd-log/%Y-%m-%d-httpd-access.log 86400” common ErrorLog “”|/usr/local/sbin/rotatelogs -l /var/log/httpd-log/%Y-%m-%d-httpd-error.log 86400”
You must be logged in to post a comment.