Created attachment 32373 [details] the trivial patch I propose to add trivial enhancement to the mod_headers: allow to use client IP in header value by using %a specifier. The patch is rather trivial too. What it provides: When used on frontend like RequestHeader set X-Client-IP %a It provides X-Client-IP header to pass through the proxy module (that is, if you don't want to use X-Forwarder-For header for realip module, and proxy module has no option to change the name). This variant works after realip, so it retrieves the first client IP if used together with realip. When used on backend like RequestHeader set X-Frontend-IP %a early it sets X-Frontend-IP header to the last frontend IP (direct IP) accessing this server. So it's useful to easily retrieve first/last IPs in forwarding sequence for scripts.
Sorry, duplicated.
It's a dupe of #47447.
*** This bug has been marked as a duplicate of bug 47447 ***