mod_rewrite with the result of mod_proxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux