Forum Discussion
Andrew_Wilson_2
Nimbostratus
Jan 09, 2007Search for specifc text in URL
Firstly, I hate posting things when they should be easy to get working.. but this is doing my head in and it's so simple. All I want to do is look at the url and get the F5 to look at the string and i...
hoolio
Cirrostratus
Jan 09, 2007That looks good. I'd suggest getting/setting the default pool on the VIP though. If a request comes in on one TCP connection and matches the condition in your rule it will go to the internal.google.server pool. If a second request comes in over that same TCP connection and does not match the condition, it will also go to internal.google.server pool--not the default pool configured on the VIP as you may expect.
For more info, check this post: (Click here).
To handle this scenario, you can get the default pool and use it if the request doesn't match the condition:
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
if {[HTTP::uri] contains "lcccat=ecs" } {
pool internal.google.server
}
else {
pool $default_pool
}
}Aaron
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