Forum Discussion
Preet_pk
Oct 12, 2023Cirrus
How to enbale HTTP/2 on F5 via irule
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.
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 } } }
Did this work for you Preet_pk ?
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects