From: André Malo
Date: Mon, 5 Apr 2004 17:55:58 +0000 (+0000)
Subject: document new RequestHeader behaviour
X-Git-Tag: pre_ajp_proxy~416
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e625b3a655a12ecb95d7d432c40d109b02a6dc4;p=apache
document new RequestHeader behaviour
PR: 27951
Submitted by: vincent gryzor.com (Vincent Deffontaines)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103270 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/mod_headers.xml b/docs/manual/mod/mod_headers.xml
index 7e10eb4ed2..c816f19f95 100644
--- a/docs/manual/mod/mod_headers.xml
+++ b/docs/manual/mod/mod_headers.xml
@@ -128,7 +128,7 @@ is available only in Apache 2.0
RequestHeader
Configure HTTP request headers
RequestHeader set|append|add|unset header
-[value]
+[value [env=[!]variable]]
server configvirtual host
directory.htaccess
FileInfo
@@ -171,6 +171,16 @@ is available only in Apache 2.0
value contains spaces, it should be surrounded by double
quotes. For unset, no value should be given.
+ When the RequestHeader directive is used with the
+ add
, append
, or set
argument, a
+ fourth argument may be used to specify conditions under which the action
+ will be taken. If the environment variable
+ specified in the env=...
argument exists (or if the environment
+ variable does not exist and env=!...
is specified) then the
+ action specified by the RequestHeader directive will
+ take effect. Otherwise, the directive will have no effect on the
+ request.
+
The RequestHeader directive is processed
just before the request is run by its handler in the fixup phase.
This should allow headers generated by the browser, or by Apache