不要在Remote_User为空的地方记录请求

时间:2019-09-16 14:39:39

标签: apache

我正在运行Apache 2.4.23。我正在寻找一种不使用空的远程用户(%u)记录请求的方法。

当未定义%u时,Apache当前输出“-”。

为此,我使用了CustomLog和apache的轮换日志。

类似的东西:

SetEnvIf Remote_User isEmpty dontlog

CustomLog /var/log/apache2/access.log customFormat env=!dontlog

0 个答案:

没有答案