Selected balancerMember route?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Selected balancerMember route?

DICKEY Rob
Version - Apache: 2.4.29

In summary, I am observing that BALANCER_WORKER_ROUTE, BALANCER_WORKER_CHANGED, etc. environment variables are not set until AFTER the selected balancerMember host has responded.  How can I determine which balancerMember has been selected BEFORE the initial request is sent to the balancerMember host to allow for altering or adding headers to that initial request?

<Proxy "balancer://myappinstances">
BalancerMember "http://mydomain.com:9080/myapp" route=app1
BalancerMember "http://mydomain2.com:9080/myapp" route=app2
ProxySet stickysession=SERVERID
</Proxy>
<Location "/myapp">
       Header add Set-Cookie "SERVERID=myapp.%{BALANCER_WORKER_ROUTE}e; path=/myapp" env=BALANCER_ROUTE_CHANGED
       ProxyPass balancer://myappinstances stickysession=SERVERID nofailover=on
       ProxyPassReverse balancer://myappinstances
</Location>

Thanks!


This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer at [hidden email]<mailto:[hidden email]>


For other languages, go to https://www.3ds.com/terms/email-disclaimer

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]