Request for X-Forwarded-Uri

Marcus Doemling <[email protected]> Fri, 19 Dec 2003 17:00:07 -0500 (EST)
Newsgroups gmane.comp.apache.mod-proxy
Message-ID <[email protected]>
Hi,

I would like to request a feature regarding the
X-Forwarded headers. I would like one more of those,
called X-Forwarded-Uri which contains the original
unparsed URI. This could be simply achieved by the following
line added to proxy_http.c:

  ap_table_mergen(req_hdrs, "X-Forwarded-Uri", r->unparsed_uri);

This could be added where all the other X-Forwarded
headers are defined. It would be great to see this feature
in the official release.

I am using this with mod_perl in the classic front-end / back-end
server setup such that the back-end mod_perl server can
use the info about the original URI while the front-end
server performs some URI rewriting. Maybe this feature
could be of general benefit.

Thanks,
Marcus