Joachim Ring a écrit :
>>I would like to use Setenv directive like this :
>>SetEnv USER_AUTH ${SSL_CLIENT_S_DN_Email}
>>
>>but the result is "${SSL_CLIENT_S_DN_Email}" (with phpinfo) and not the
>>email. Can someone help me ?
>
>
> well, SetEnv can use only fixed values iirc, so no luck here. one
> could try to sneak around this with mod_rewrite (see
> [PT,E=USER_AUTH:${SSL_CLIENT_S_DN_Email}] as a flag to some
> rewrite-rule) which might or might not work.
>
> but in your case you should be able to access the variable in php
> under it's proper name. if it isn't in the environment, you probably
> need
>
> SSLOptions +StdEnvVars + ExportCertData
>
> for the appropriate context your php stuff is in...
>
> joachim
Thanks for your help, it was for a reverse-proxy SSLv3 and now it works
fine with :
RewriteRule /^(.*)$ <a style='text-decoration: underline;' href="http://hide-host/$1" target="_blank">http://hide-host/$1</a> \
[env=USER_AUTH:${SSL_CLIENT_S_DN_Email}]<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Setenv with a dynamic variable