From: Rich Bowen Date: Sat, 11 Aug 2007 12:15:08 +0000 (+0000) Subject: Add a description of the env= optional syntax, as per issue #27951 X-Git-Tag: 2.0.61~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff9fb31b019437e629423464b1964636d9ea543e;p=thirdparty%2Fapache%2Fhttpd.git Add a description of the env= optional syntax, as per issue #27951 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@564905 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_headers.html.en b/docs/manual/mod/mod_headers.html.en index 044f111ad66..c9eb0859bfe 100644 --- a/docs/manual/mod/mod_headers.html.en +++ b/docs/manual/mod/mod_headers.html.en @@ -256,7 +256,7 @@ later +[value [env=[!]variable]] @@ -299,6 +299,16 @@ latervalue 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 diff --git a/docs/manual/mod/mod_headers.xml b/docs/manual/mod/mod_headers.xml index af5f24fddb7..37363b5bdaf 100644 --- a/docs/manual/mod/mod_headers.xml +++ b/docs/manual/mod/mod_headers.xml @@ -142,7 +142,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 @@ -185,6 +185,17 @@ 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

Description:Configure HTTP request headers
Syntax:RequestHeader set|append|add|unset header -[value]
Context:server config, virtual host, directory, .htaccess
Override:FileInfo
Status:Extension