I have a request that contains the header X-Client-Cert
and I need to assign it to another header from the virtual host configuration in apache. How can I do that?
RewriteEngine On
RequestHeader set NewHeader "%{X-Client-Cert}e"
Thist solution doesn't work because X-Client-Cert is not an environment variable, however if I log the access log with
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{X-Client-Cert}i\" " ssl_f
CustomLog "logs/access_fssl.log" ssl_f
I can see the content of X-Client-Cert
Is there any form of insert the content of X-Client-Cert
into NewHeader user defined variable?