簡體   English   中英

apache 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_envmod_env建議您使用mod_rewrite

正確的答案是一個mod_headers.c補丁,用於添加AWS和GCS所需的其他身份驗證信息

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM