Forum Discussion
Patrick_Mullane
Nimbostratus
May 14, 2014URI, Host change with Pool selection
Hello all. I'm trying to write, what should be, a simple iRule to replace the host, and the first portion of the URI, leaving any remaining portion of the uri intact. Such as:
IF the request i...
Domai
Altostratus
May 14, 2014when HTTP_REQUEST { if {[string tolower [HTTP::host]] equals "www.oranges.com"} { pool pool_oranges } elseif {[string tolower [HTTP::host]] equals "www.apples.com"} { pool pool_apples } else {reject} }
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