Cookie に基づく Apache 条件付き ProxyPass および ProxyPassReverse

Cookie に基づく Apache 条件付き ProxyPass および ProxyPassReverse

リクエスト内に存在する Cookie に基づいて、httpd.conf ファイル内の ProxyPass および ProxyPassReverse パラメータを動的に設定しようとしていますが、解決策が見つかりません。疑似コードは次のとおりです。

<Location "/solutions/">
  if cookie exists
    #The beta cookie exists, so route the solutions request to the new internal endpoint
    ProxyPass http://localhost:8080/vaadin/
    ProxyPassReverse http://localhost:8080/vaadin/

    #Make any cookies written from the vaadin endpoint to have the path /solutions
    ProxyPassReverseCookiePath  "/"  "/solutions"
  else
    #The beta cookie doesn't exist, so route the solutions request to its normal/old internal endpoint.
    ProxyPass http://localhost:8080/solutions/
    ProxyPassReverse http://localhost:8080/solutions/
</Location>

#What I have currently is:
<Location "/solutions/">
    #Check for cookie 'uiBeta' and it's value being true
    RewriteCond %{HTTP_COOKIE} uiBeta=([^;]+)
    RewriteCond %1 ^true$
    #My RewriteRule replaces the ProxyPass as it supports a conditional
    RewriteRule ^/(.*) http://localhost:8080/vaadin/ [P,L]

    #How do I write the ProxyPassReverse and ProxyPassReverseCookiePath in this situation? 
<Location> 

関連情報