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?

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.