There are five pools in my rule, When http request that switched on the URI to select the pool.When select the pool exdous_http_pool. It’s has cookie persistence requirements.If selece other pool,It’s not has persistence requirements,
So I write the rule:
when HTTP_REQUEST {
if {[HTTP::host] equals "china.ali.com" }
{
if {[HTTP::uri] equals "/"}
{persist none
pool old_statics}
elseif {[HTTP::uri] equals "/index.html"}
{persist none
pool old_statics}
elseif {[HTTP::uri] contains "sell"}
{persist none
pool statics}
elseif {[HTTP::uri] contains "buy"}
{persist none
pool statics}
elseif {[HTTP::uri] contains "/athena/turbine"}
{persist none
pool athena_ali}
elseif {[HTTP::uri] contains "mysite"}
{persist none
pool athena_ali}
elseif {[HTTP::uri] contains "img"}
{persist none
pool img_http_pool}
elseif {[HTTP::uri] contains "trust"}
{persist none
pool statics}
else {persist cookie insert mycookies
pool exdous_http_pool}
}
else {persist cookie insert mycookies
pool exdous_http_pool}
}
As a result, soever select anypool It always do persistence .what’s error in my rule??