I have configured my apache for a simple authenticated reverse-proxy, which works fine. Now I want to set the userinfo as a http-header. like:
<Location /somehost/>
ProxyPass http://somehost/
AuthType Basic
AuthName "secret"
AuthBasicProvider file
AuthUserFile "points/to/passwordsfile"
Require valid-user
RequestHeader set X-my-header "lalala"
RequestHeader set X-user-id "%{REMOTE_USER}e"
</Location>
The headers are sent. The part %{REMOTE_USER}e was a suggestion by me, but it did not work. any hints?