Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

How to enbale HTTP/2 on F5 via irule

Preet_pk
Altostratus
Altostratus

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.

 

 

2 REPLIES 2

Samir
MVP
MVP

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 }
	}
}

boneyard
MVP
MVP

Did this work for you @Preet_pk ?