https://issues.apache.org/bugzilla/show_bug.cgi?id=47447
Summary: Add possibility to use client IP as a value in
RequestHeader (and Header, too, but this is almost
meaningless)
Product: Apache httpd-2
Version: 2.2.11
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: mod_headers
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=23897)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23897)
mod_headers %a value format for client IP patch
Some people may want to use Apache as a reverse proxy on a frontends. Alas,
mod_rpaf is heavily bugged (.htaccess don't work), and existing small modules
like mod_realip2 do not honor X-Forwarded-For header (that is not completely
spoof proof also due to possibility of multiple values).
So I decided to add ability to use client IP as a value in mod_headers value
formats. It is a small nice enhancement that allows me to add like "X-Real-IP"
header on a backend.
The patch for 2.2.11 is attached, it is trivial enough.
Example of use:
RequestHeader set X-Real-IP %a
--
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]