%t和%d是apache日志中响应时间的标记。有没有办法得到响应时间? 我的想法是在错误文档重定向中将响应时间作为变量传递。
</>
ErrorDocument /test.py?response_time= %t or %d
<proxypass>....</proxypass>
<proxyreverse>....</proxyreverse>
</>
任何类型的替代解决方案都将被接受。
答案 0 :(得分: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