Hello, Here is a very simple patch to add some env vars to mod_proxy_balancer. This allows you to figure out where the request was routed from the reverse proxy. I needed this to add sticky session cookies to the response because I could not modify the backend app. So, you can do something like this on the reverse proxy: SetEnvIf ^Cookie$ "MYCOOKIE=([^ ;]*)" MYCOOKIE=$1 Header append Set-Cookie "MYCOOKIE=%{UNIQUE_ID}e.%{BALANCER_WORKER_ROUTE}e; path=/" env=!MYCOOKIE RewriteRule ^/+(.*) balancer://test/$1 [P] ProxyPassReverse / balancer://test/ <Proxy balancer://test> BalancerMember http://host1 route=host1 BalancerMember http://host2 route=host2 </Proxy> ProxySet balancer://test stickysession=MYCOOKIE nofailover=On
Created attachment 18457 [details] patch quick patch to add env vars to mod_proxy_balancer
Nice tool. If you want to log this, use %{BALANCER_foo}e in the access log. I don't see the need for the debug-level error log messages. Other opinions from the crowd?
Created attachment 18467 [details] mod_proxy_balancer-trunk.patch Cleaned up patch, added patch to docs, against trunk.
Created attachment 18468 [details] mod_proxy_balancer-trunk.patch Let's try that again w/o the tab characters ;)
ok, removed the debug stuff (not needed). I also went against trunk and added a patch to the docs as well.
Committed to trunk as r417238 (http://svn.apache.org/viewvc?rev=417238&view=rev). Thanks.