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

Removing header "Connection:keep-alive" for an application in F5

Preet_pk
Altostratus
Altostratus

Hi All,

Below is eg ofhostname publishing setup in dev F5. Please share the irule syntax to removing header "Connection:keep-alive" for "labred.local.ae"

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

1 REPLY 1

Paulius
MVP
MVP

@Preet_pk I believe the following is what you're looking for.

when HTTP_REQUEST priority 500 {

    switch -- [string tolower [HTTP::host]] {
        labred.local.ae {
            HTTP::header remove Connection
            pool Lab-red-pool
        }
        labblue.local.ae {
            HTTP::header remove Connection
            pool Lab-blue-pool
        }

}