【问题标题】:Show Apache response time for POST requests, not just GET显示 POST 请求的 Apache 响应时间,而不仅仅是 GET
【发布时间】:2019-04-20 21:35:03
【问题描述】:

我正在使用 Apache 的 mod_logio https://httpd.apache.org/docs/2.4/mod/mod_logio.html 来调试 Ubuntu 上的一些慢速请求。

%^FB 显示“请求到达与 响应头的第一个字节被写入。”

我已在 apache2.conf 中打开它,并在我使用的日志格式中包含 %^FB。

LogIOTrackTTFB ON
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %^FB" myformat

时间包括在内,但仅限于 GET 请求。它不包含在 POST 请求中,也不包含在以下请求中: script src="requesturl"

有没有办法为 POST 和脚本 src 请求获取此信息?

【问题讨论】:

    标签: apache


    【解决方案1】:

    事实证明,它确实适用于所有请求。我刚刚忘记将新的日志记录格式用于安全和非安全请求。这就是区别。

    【讨论】:

      猜你喜欢
      • 2014-09-28
      • 1970-01-01
      • 1970-01-01
      • 2013-10-30
      • 2021-09-02
      • 2020-07-17
      • 1970-01-01
      • 1970-01-01
      • 2018-11-29
      相关资源
      最近更新 更多