Forum Discussion
Nick_68106
Nimbostratus
Dec 08, 2011iRule to route traffic to different pool when pool members down in default pool
Greetings, We are running a transparent proxy in our environment and have decided that when the both proxy servers in our proxy server pool become unavailable we would like to route the traffic out th...
nitass
Employee
Dec 09, 2011never mind. forward command is not needed in your configuration.
by the way, can you try to also check active members in HTTP_REQUEST?
e.g.
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"www.facebook.com" -
"www.google.com" -
"www.yahoo.com" {
pool captured_lasthop
}
default {
if {[active_members [LB::server pool]] > 0} {
log local0. "Client IP address is: [IP::remote_addr]"
HTTP::header replace Host "www.example.com"
log local0. "Replacing Host"
HTTP::uri "/example/login.html"
log local0. "Replacing URI"
}
}
}
}
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