%t和%d是apache日志中用于响应时间的标记。有什么方法可以获取响应时间吗?我的想法是在错误文档重定向中将响应时间作为变量传递。
</>
ErrorDocument /test.py?response_time= %t or %d
<proxypass>....</proxypass>
<proxyreverse>....</proxyreverse>
</>
将接受任何其他替代解决方案。
您是否设置了日志格式?像这样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