Apache Httpd LogFormat 可以登录"trailer lines"?
Apache Httpd LogFormat can log "trailer lines"?
我已阅读此处为 Apache HTTPD 服务器配置自定义 LogFormat 的文档 http://httpd.apache.org/docs/current/mod/mod_log_config.html#formats
在此 table 中存在以下两个条目:
%{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.
我试图弄清楚这两个是什么意思,但到目前为止我一直很不走运。这两个是什么意思? request/response 中会记录什么?
从技术上讲,某些类型的 HTTP 请求或响应可以有一个 "trailer" -- 也就是说,一个 header 包含在消息的末尾,而不是在开头.例如:
HTTP/1.1 200 OK
Trailer: Expires
<response content>
Expires: <date>
%{}^ti
和 %{}^to
日志格式可用于记录这些预告片。
不确定这是做什么用的?别担心,你并不孤单。大多数 HTTP 客户端和服务器——包括网络浏览器——不支持或使用尾部。除非您的应用程序专门使用 HTTP 尾部,否则您可以安全地忽略它。
我已阅读此处为 Apache HTTPD 服务器配置自定义 LogFormat 的文档 http://httpd.apache.org/docs/current/mod/mod_log_config.html#formats
在此 table 中存在以下两个条目:
%{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.
我试图弄清楚这两个是什么意思,但到目前为止我一直很不走运。这两个是什么意思? request/response 中会记录什么?
从技术上讲,某些类型的 HTTP 请求或响应可以有一个 "trailer" -- 也就是说,一个 header 包含在消息的末尾,而不是在开头.例如:
HTTP/1.1 200 OK
Trailer: Expires
<response content>
Expires: <date>
%{}^ti
和 %{}^to
日志格式可用于记录这些预告片。
不确定这是做什么用的?别担心,你并不孤单。大多数 HTTP 客户端和服务器——包括网络浏览器——不支持或使用尾部。除非您的应用程序专门使用 HTTP 尾部,否则您可以安全地忽略它。