0
我的.htaccess文件:Apache(2.0)mod_headers不輸出環境變量?
Header add X-Hello "time %D"
現在我檢查,看看是什麼樣子,檢查出的X-Hello
頭:
$curl -v http://foo.com/bar.php
...
< HTTP/1.1 200 OK
< Date: Wed, 06 Oct 2010 20:43:39 GMT
< Server: Apache
< Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Pragma: no-cache
< Set-Cookie: PHPSESSID=7d32d8fch8qrnnuvoqqopr74c0; path=/
< X-Hello: time %D
< Transfer-Encoding: chunked
< Content-Type: text/html
這顯然違背了下面的Apache文檔。爲了插入環境變量,還有其他一些指令是否需要mod_headers
?
http://httpd.apache.org/docs/2.0/mod/mod_headers.html#examples
這是超級用戶嗎? – Xailor 2010-10-07 21:04:13
如果它應該被移動,我認爲它應該在serverfault而不是超級用戶。 – 2010-10-21 04:22:02