Yazid_Abdesslam
May 31, 2017Nimbostratus
Send traffic from one VS to different pools depending on URI
Hello,
We have got: - 2 possible URI's, - 1 Virtual Server - 2 Pools
We'd like to forward traffic to Pool_CRM81_ccfr if uri contains or starts with "/ecommunications_ccfra" & send to Pool_CRM81_Content_80 if uri contains or starts with "/content" is the bellow iRule correct for our case?
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
if { $uri starts_with "/ecommunications_ccfra" } {
pool Pool_CRM81_ccfra
} elseif { $uri starts_with "/content" } {
pool Pool_CRM81_Content_80
} else {
drop
}
}
Also we'd like to enable persistance with cookie only for the 1st pool(ccfra) & not the second one
many thanks. regards,