答案1
您必须将日志发送到命令(“|/usr/bin/rotatelogs <path_with_format> <time|size>”)。像这样:
# Check path to rotatelogs and log file directory
CustomLog "|/usr/bin/rotatelogs /var/log/apache/clickheat.%Y-%m-%d-%H 3600" "%r" env=clickheat
您必须将日志发送到命令(“|/usr/bin/rotatelogs <path_with_format> <time|size>”)。像这样:
# Check path to rotatelogs and log file directory
CustomLog "|/usr/bin/rotatelogs /var/log/apache/clickheat.%Y-%m-%d-%H 3600" "%r" env=clickheat