Forum Discussion
Sinistrad_29710
Nimbostratus
Feb 16, 2017Apply an iRule for only a specific pool from a VS
Hi,
I need to apply this iRule to a specific pool, but do not want to impact the other pools in my VS :
when HTTP_REQUEST {
STREAM::disable
HTTP::header remove "Accept-Encoding"
}
when HTTP_...
Stanislas_Piro2
Cumulonimbus
Mar 02, 2017Hi,
you can set a variable to define you want the stream to apply:
when HTTP_REQUEST {
STREAM::disable
if { [HTTP::host] eq "alfons-pp.domain.com" } {
set stream_string {@http://@https://@}
HTTP::header remove "Accept-Encoding"
}
}
when HTTP_RESPONSE {
if { ([HTTP::header value Content-Type] contains "text") and [info exists stream_string]} {
STREAM::expression $stream_string
STREAM::enable
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
