ALFONSO_SANTIA1
Oct 18, 2018Nimbostratus
Combining or adding http and https requests
Customer has the following requirement. They have VIP with 4 pools.
What they want is the following:
If user requests "http://vip/something" go to poolA which is for Application A pool for port 80
If user requests "https://vip/something" go to poolB which is for Application A pool for port 443
If user requests "http://vip/" go to poolC which is for Application B pool for port 80
If user requests "https://vip/" go to poolD which is for Application B pool for port 443
I have managed so far this iRule to work:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "/+"} then { pool poolA
} else {
if { ([HTTP::uri] == "/") } then { pool poolC
}
}
}
But this is only for http request.
how do I combine or add for the https requests?