Forum Discussion
smiley_dba_1116
Nimbostratus
Nov 08, 2012HTTP header and Changing URI
when HTTP_REQUEST {
if {([HTTP::host] contains "app.abc.com" ) and ([HTTP::uri] equals "/test:/")} {
pool Robs_Temp
} else {
pool robprod_pool
}
}
My question is this, with /test, there is a colon and a changing value and /, such as
test:app/
test:db/
test:movie'
Is there a way in the iRule that we can say test:*
RGW
2 Replies
- Tim_K_92675
Cirrostratus
Have you tried
[HTTP::uri]] starts_with "/test:" - What_Lies_Bene1
Cirrostratus
Tim beat me to it!
How about;
if { ([HTTP::host] contains "app.abc.com" ) and ([HTTP::uri] starts_with "/test:") } {
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
