如何获取Apache proxypass响应时间?

问题描述 投票:2回答:1

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

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

将接受任何其他替代解决方案。

apache httpresponse proxypass
1个回答
0
投票

您是否设置了日志格式?像这样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

© www.soinside.com 2019 - 2024. All rights reserved.