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