apache requestheader环境变量

时间:2015-03-12 12:52:56

标签: linux apache http http-headers

我想在apache的RequestHeader上设置SSL_CLIENT_S_DN_CN的值,下面不起作用...

  SSLOptions +StdEnvVars
  SSLUserName SSL_CLIENT_S_DN_CN

  ProxyPass        http://x.x.x.x/
  ProxyPassReverse http://x.x.x.x/
  Header add X-FILTER-Username %{SSL_CLIENT_S_DN_CN}
  RequestHeader set X-FILTER-Username %{SSL_CLIENT_S_DN_CN}

知道如何做到这一点?

1 个答案:

答案 0 :(得分:1)

设法使用此

解决
  Header add X-RStudio-Username "%{SSL_CLIENT_S_DN_CN}s"
  RequestHeader set X-FILTER-Username "%{SSL_CLIENT_S_DN_CN}s"