From 8e625b3a655a12ecb95d7d432c40d109b02a6dc4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Malo?= Date: Mon, 5 Apr 2004 17:55:58 +0000 Subject: [PATCH] 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 --- docs/manual/mod/mod_headers.xml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 -- 2.50.1