
bugzilla at apache
Jun 29, 2009, 2:05 AM
Post #1 of 1
(169 views)
Permalink
|
|
[Bug 47447] New: Add possibility to use client IP as a value in RequestHeader (and Header, too, but this is almost meaningless)
|
|
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: bugs[at]httpd.apache.org ReportedBy: alex[at]net13.info CC: alex[at]net13.info 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: bugs-unsubscribe[at]httpd.apache.org For additional commands, e-mail: bugs-help[at]httpd.apache.org
|