Forum Discussion
Peter_Bevington
Nimbostratus
Feb 14, 2012Redirection
Not been iRuling for very long
I have a requirement to redirect traffic from to
I don't want to use HTTP::redirect as this will create more traffic and would like to redirect to a pool
I'm doing the following but am finding that the "new-pool' isn't being used
switch -glob [string tolower [HTTP::host]] {
"server1*" {
HTTP::header replace Host $spr_site
switch -glob [string tolower [HTTP::uri]] {
"/" {
HTTP::uri "NEW-URI"
}
}
pool "New-Pool"
}
}
Anyone have any help or advice ?
Thanks
1 Reply
- hoolio
Cirrostratus
Hi Peter,
Can you add logging to the switch statements to see whether the pool command is being reached?
http://devcentral.f5.com/wiki/iRules.log.ashx
Aaron
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