Forum Discussion
Preet_pk
Oct 12, 2023Cirrus
Removing header "Connection:keep-alive" for an application in F5
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 }
}
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 } }
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