标签: apache
我正在运行Apache 2.4.23。我正在寻找一种不使用空的远程用户(%u)记录请求的方法。
当未定义%u时,Apache当前输出“-”。
为此,我使用了CustomLog和apache的轮换日志。
类似的东西:
SetEnvIf Remote_User isEmpty dontlog
CustomLog /var/log/apache2/access.log customFormat env=!dontlog