Forum Discussion
Jim_Jack_103645
Nimbostratus
Aug 27, 2007redirect based on uri
We have a pool of servers which we direct our traffic to. Our testers want to be able to choose which server their request goes to by using a querystring.
e.g. we have servers a, b, c, d and e i...
Jim_Jack_103645
Nimbostratus
Sep 18, 2007I tried to add cookie persistence to the irule to no effect:
when HTTP_REQUEST {
if { ([matchclass [string tolower [HTTP::header User-Agent]] contains $::bots])
or
([ matchclass [ IP::client_addr ] equals $::bot_ips ]) } {
is a bot .. send to the bot server
pool MIS-BOT20-01
} else {
regular traffic
switch [URI::query [HTTP::uri] "lbsc"] {
"" {
pool MIS-WEB20-1
}
"c" {
persist cookie
node 10.60.1.234
}
"d" {
persist cookie
node 10.60.2.104
}
"e" {
persist cookie
node 10.60.2.124
}
"f" {
persist cookie
node 10.60.2.6
}
"g" {
persist cookie
node 10.60.2.55
}
"botc" {
persist cookie
node 10.60.1.134
}
"botd" {
persist cookie
node 10.60.2.34
}
default {
pool MIS-WEB20-1
}
}
}
}
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
