Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache Httpd LogFormat可以记录;拖车线;?_Apache_Logging_Apache2 - Fatal编程技术网

Apache Httpd LogFormat可以记录;拖车线;?

Apache Httpd LogFormat可以记录;拖车线;?,apache,logging,apache2,Apache,Logging,Apache2,我已经阅读了为ApacheHTTPD服务器配置自定义日志格式的文档,位于此处 此表中存在以下两个条目: %{VARNAME}^ti The contents of VARNAME: trailer line(s) in the request sent to the server. %{VARNAME}^to The contents of VARNAME: trailer line(s) in the response sent from the server. 我试图弄明白这两个

我已经阅读了为ApacheHTTPD服务器配置自定义日志格式的文档,位于此处

此表中存在以下两个条目:

%{VARNAME}^ti   The contents of VARNAME: trailer line(s) in the request sent to the server.
%{VARNAME}^to   The contents of VARNAME: trailer line(s) in the response sent from the server. 

我试图弄明白这两个人的意思,但到目前为止,我一直很不走运。这两个是什么意思?请求/响应将记录哪些内容?

从技术上讲,某些类型的HTTP请求或响应可能有一个“尾部”——也就是说,一个包含在消息末尾而不是开头的头。例如:

HTTP/1.1 200 OK
Trailer: Expires

<response content>

Expires: <date>
HTTP/1.1200正常
预告片:过期
到期:
%{}^ti
%{}^to
日志格式可用于记录这些拖车


不知道这是干什么用的?别担心,你并不孤单。大多数HTTP客户机和服务器(包括web浏览器)不支持或使用拖车。除非您的应用程序专门使用HTTP拖车,否则您可以安全地忽略此问题。

是!这就是我要找的信息。我现在还找到了描述它的RFC:仅供参考:我用它来改进这一点: