You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nuno Fernandes <np...@eurotux.com> on 2009/03/11 19:21:29 UTC
[users@httpd] mod_rewrite with the result of mod_proxy
Hi,
I have an apache with mod_proxy and its in reverse mode with 2 IIS in the
inside network. I can't touch the IIS code. I would like to have it balanced
with stickysession cookie.
Is there any way i can add a cookie like
RewriteCond %{HTTP_COOKIE} !"BALANCEID=balancer.(\w+)"
RewriteRule .* - [CO=BALANCEID:balancer.%{INSIDE_SERVER}:.example.com]
after i get the return from the inside server. If i would receive the response
from server1 i would add the INSIDE_SERVER = HOSTNAME OF THE INSIDE SERVER
Using %{LA-U:variable} would be usefull?
Thanks,
Nuno Fernandes