I'm using apache as a frontend http proxy. I need to send a header with a value from a specific environment variable to all proxied request. Like this:
RequestHeader set myheader %{FOO}e
The issue is that the value from the env variable FOO
must be base64 encoded. Is it possible to b64-encode that header value on the fly?
mod_rewrite? subrequest? a custom module? ...
Btw, the env variable is created by another apache module, which I cannot fix unfortunately.