Forum Discussion
Bohun_115093
Nimbostratus
May 16, 2014Identical websites accessed with different URL's
Hello, I am after some assistance.
The scenario is as follows:
We have four web servers for a single application. The first two are configured with the "production' web site. Then we have a tra...
Bohun_115093
Nimbostratus
May 16, 2014when HTTP_REQUEST {
log local0. "irule Test_5 HIT" if {[string tolower [HTTP::uri]] starts_with "/training" } {
HTTP::uri [string map -nocase {"/training" "/"} [HTTP::uri]]
pool Training_Pool
log local0. "Training Pool selected match on training"
} elseif {[string tolower [HTTP::uri]] starts_with "/test" } {
HTTP::uri [string map -nocase {"/test" "/"} [HTTP::uri]]
pool TEST_POOL
log local0. "TEST_POOL selected matched on test"
} else {
pool Prod_Pool
log local0. "Else statement matched and sent to Prod_Pool"
}
}
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