Forum Discussion
together_183451
Nimbostratus
Jan 23, 2015Following iRule not working in my setup please correct mistake if found
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "mfcomb.birlasunlife.com" } {
if { ([string tolower [HTTP::uri]] starts_with "/media") or
([string tolower [H...
Michael_61033
Nimbostratus
Jan 23, 2015Try this:
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] eq "mfcomb.birlasunlife.com"}{
switch [string tolower [HTTP::uri]] {
"/media*" -
"/mediaupload*" -
"/webchat*" -
"/webtrak*" {
pool Talisma_MF_Webchat
}
default {
pool UAT-VS_pool
}
}
}
}
or alternativly your version/way
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "mfcomb.birlasunlife.com"}{
if { ([string tolower [HTTP::uri]] starts_with "/media") or ([string tolower [HTTP::uri]] starts_with "/mediaupload") or ([string tolower [HTTP::uri]] starts_with "/webchat") or ([string tolower [HTTP::uri]] starts_with "/webtrak") }{
pool Talisma_MF_Webchat
} else {
pool UAT-VS_pool
}
}
}
together_183451
Nimbostratus
Jan 24, 2015Thanks Michael I will try it and update you.
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