【发布时间】:2019-03-18 10:28:13
【问题描述】:
我在 /etc/apache2/apache2.conf 更改了 ErrorLogFormat,但这不会影响日志。我还将我的 ErrorLogFormat 添加到启用站点的目录中的配置文件中,但没有效果。
ErrorLogFormat "[%{%Y-%m-%d %H:%M:%S}t] [%l] [client %a] %M"
这是日志:
[Sat Oct 13 13:01:56 2018] [error] [client 123.123.123.123:41204] AH01790: user `asd' in realm `some realm' not found: /
编辑:它在更新的树莓派上运行。我测试过:停止和启动,在 apache 服务上重新启动和系统重新启动。
grep -r "ErrorLogFormat" /etc/apache2
仅显示了我在 apache.conf 中添加的所需格式以及在启用站点时添加的 conf 文件。
【问题讨论】:
-
你重启了 Apache 吗?不优雅,句号 - 开始。
-
感谢您的建议。我现在测试了它,但没有成功。查看我的编辑。
标签: apache http logging apache2.4