11-Oct-2023 23:20
Hi All,
Is there any option to enable HTTP/2 via irule for a specific hostname.
Below is the current setup .
LAB-INTERNAL-iRule
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
labred.local.ae {
pool Lab-red-pool }
labblue.local.ae {
pool Lab-blue-pool }
}
Is there any option to enable HTTP/2 on labred.local.ae for fronsend connectivity (Client -> F5)side.
12-Oct-2023 02:06
Not tested but something can be written like this
when CLIENT_ACCEPTED {
set url [string tolower [HTTP::host]]
}
when HTTP_REQUEST {
if { [$url eq "labred.local.ae"] && [HTTP2::active] } {
pool Lab-red-pool }
elseif { [$url eq "labblue.local.ae"] } {
pool Lab-blue-pool }
}
}