1
民间, 需要将以下请求头转换为不同的格式:阿帕奇mod_headers中日期:抬头
RequestHeader set Date "%{TIME_WDAY}e"
的%T变量看起来像:
t=1367272677754275
想日期=到看起来像:
Date: Tue, 27 Mar 2007 19:44:46 +0000
这是如何完成的?
谢谢!
民间, 需要将以下请求头转换为不同的格式:阿帕奇mod_headers中日期:抬头
RequestHeader set Date "%{TIME_WDAY}e"
的%T变量看起来像:
t=1367272677754275
想日期=到看起来像:
Date: Tue, 27 Mar 2007 19:44:46 +0000
这是如何完成的?
谢谢!
你不能这样做与mod_headers
的文档功能。此模块只支持follwing变量(从doc):
%t The time the request was received in Universal Coordinated Time since the epoch (Jan. 1, 1970) measured in microseconds. The value is preceded by t=.
%D The time from when the request was received to the time the headers are sent on the wire. This is a measure of the duration of the request. The value is preceded by D=. The value is measured in microseconds.
%{FOOBAR}e The contents of the environment variable FOOBAR.
%{FOOBAR}s The contents of the SSL environment variable FOOBAR, if mod_ssl is enabled.
除非你不断地想一个环境变量设置为当前的日期,并把它使用mod_env
,我建议你使用mod_rewrite
。这里
正确答案是mod_headers.c补丁添加由AWS和GCS
需要额外的认证信息是'%t'从'mod_headers'来了吗? – likeitlikeit 2013-05-10 17:48:22
这里的内容是什么?你正在提供一个Web应用程序吗?如果是,您可以直接在Web应用程序中设置Date标题吗? – 2013-05-10 18:12:49