![](/img/trans.png)
[英]304 response does not set custom header for apache with mod_headers
[英]apache mod_headers Date: Header
親愛的,需要將以下請求標頭轉換為其他格式:
RequestHeader set Date "%{TIME_WDAY}e"
%t變量如下所示:
t=1367272677754275
希望Date =看起來像:
Date: Tue, 27 Mar 2007 19:44:46 +0000
怎么做?
謝謝!
您不能使用已記錄的mod_headers
功能來做到這mod_headers
。 該模塊僅支持以下變量(來自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_env
, mod_env
建議您使用mod_rewrite
。
正確的答案是一個mod_headers.c補丁,用於添加AWS和GCS所需的其他身份驗證信息
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.