https://issues.apache.org/bugzilla/show_bug.cgi?id=47066
Summary: Header edit replacement string is not a format string.
Product: Apache httpd-2
Version: 2.2.10
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: mod_headers
AssignedTo: [email protected]
ReportedBy: [email protected]
It would be handy to have the replacement string in (Request)Header edit be a
formatted string or something similar to the rewritten URI in a rewrite rule.
An Example: add a port number from environment variable to Host Header
SetEnv envVariable {some port number from somewhere--a rewritemap lookup for
instance}
RequestHeader edit Host ^([^:]*) $1:%{envVariable}e
How I do it now:
SetEnv envVariable {some port number from somewhere}
Rewritecond %{HTTP:Host} ^([^:]*)
Rewriterule ^ - [env=newHost:%1:%{env:envVariable}]
RequestHeader set Host %{newHost}e
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]