쿠키를 기반으로 하는 Apache 조건부 ProxyPass 및 ProxyPassReverse

쿠키를 기반으로 하는 Apache 조건부 ProxyPass 및 ProxyPassReverse

요청에 존재하는 쿠키를 기반으로 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> 

관련 정보