Forum Discussion
Dec 30, 2014
irule to redirect traffic as well as changing the URL
We currently have a test environment where our web developers like to have the servers configured like our PROD servers. We currently have a setup in PROD where we have a Microsoft ISA performing re...
Michael_Jenkins
Cirrostratus
Dec 30, 2014I'd add some logging to see what's happening (and a couple changes to your script). Then check the LTM logs to see what is happening...
when HTTP_REQUEST {
log local0. "Host: [HTTP::host]"
if { [string tolower [HTTP::host]] equals "test.abc.com.int.xyz.com"} {
HTTP::header replace "Host" "www.abc.com"
log local0. " URI: [HTTP::uri]"
switch -glob [string tolower [HTTP::uri]] {
"/" {
log local0. " Setting Pool: XXXX"
pool XXXX
}
default {
log local0. " Setting Pool: XXXX"
pool YYYY
}
}
}
}
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