Bug 27951 - RequestHeader directive cannot be made conditionnal of env vars
Summary: RequestHeader directive cannot be made conditionnal of env vars
Status: CLOSED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_headers (show other bugs)
Version: 2.0-HEAD
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2004-03-25 17:29 UTC by Vincent Deffontaines
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments
Patch against modules/metadata/mod_headers.c (2.46 KB, patch)
2004-03-25 17:31 UTC, Vincent Deffontaines
Details | Diff
Suggested documentation update if patch is accepted. (11.50 KB, text/plain)
2004-03-25 17:32 UTC, Vincent Deffontaines
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Deffontaines 2004-03-25 17:29:37 UTC
On the process of setting up a [apache2] reverse proxy, it can happen that one
needs to set a RequestHeader depending on some conditions.

It seems that, though the "Header" directive accepts an env var as
condition, this cannot be used with "RequestHeader", which seems to be a
"missing" feature, at least in the case of a Reverse Proxy.

This is irrelevant for 1.3, as "RequestHeader" is new in 2.0
Comment 1 Vincent Deffontaines 2004-03-25 17:31:28 UTC
Created attachment 10995 [details]
Patch against modules/metadata/mod_headers.c
Comment 2 Vincent Deffontaines 2004-03-25 17:32:09 UTC
Created attachment 10996 [details]
Suggested documentation update if patch is accepted.
Comment 3 André Malo 2004-04-05 17:35:53 UTC
Thanks. I've committed the change to HEAD (which your patch wasn't against, so
I've modified it to match ;).