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...
giltjr
Nimbostratus
Dec 30, 2014Not sure why you are checking the URI for anything since this seems to be based on the host name. You should be able to:
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"
pool YYYY
log local0. " Setting Pool: YYYY"
else {
pool XXXX
log local0. " Setting Pool: XXXX"
}
}
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