Blue_whale
Apr 11, 2022Cirrocumulus
Need help to understand the irule
Hi experts ,
I need help to understand the below irule ,
Why we have 2 condition for the same url , 1 to replace the host and then to redirect to the pool ?
VIP url ; https://csk-net-corp.aci.network/test/network/lb/corp/v1
when HTTP_REQUEST {
if { ([string tolower [HTTP::path]] starts_with "/X509/services" )} then
{
## rien
} else
{
if {([string tolower [HTTP::host]] equals "csk-net-corp.aci.network")}{
HTTP::header replace Host "csk-net-bw.aci.network"
if { [HTTP::path] starts_with "/test/network" } { pool P_CSK_NET_5001
}
}
}