【问题标题】:How to capture apache proxypass response time??如何捕获 apache proxypass 响应时间?
【发布时间】:2020-04-09 03:04:31
【问题描述】:

%t 和 %d 是 apache 日志中用于响应时间的标记。有什么办法可以得到响应时间?? 我的想法是在错误文档重定向中将响应时间作为变量传递。

 </> 
   ErrorDocument /test.py?response_time= %t or %d 
  <proxypass>....</proxypass> 
  <proxyreverse>....</proxyreverse> 
 </> 

任何形式的替代解决方案都将被接受。

【问题讨论】:

    标签: apache httpresponse proxypass


    【解决方案1】:

    您是否设置了日志格式? 像这样 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D"

    http://httpd.apache.org/docs/current/mod/mod_log_config.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-09-13
      • 2021-12-28
      • 1970-01-01
      • 2013-11-26
      • 1970-01-01
      • 1970-01-01
      • 2015-10-15
      • 1970-01-01
      相关资源
      最近更新 更多