Forum Discussion
Allim_63326
Nimbostratus
Aug 04, 2009CSS to F5 url redirect
We are migrating from CSS to F5s v10.0.0.
The CSS has two VIPs same IP and port one is a default url "/a*" and other url is "/connected window*" that goes to same server
I was ...
hoolio
Cirrostratus
Aug 04, 2009/a* with string matching equates to
[HTTP::uri] starts_with "/a"
You could also use:
[string match "/a*" [HTTP::uri]]
Similarly, /connectedwindow* equates to:
[HTTP::uri] starts_with "/connectedwindow"
or:
[string match "/connectedwindow*" [HTTP::uri]]
You could also use a switch statement with glob style wildcard matching:
when HTTP_REQUEST {
Check requested URI
switch -glob [HTTP::uri] {
"/a*" {
pool a_pool
}
"/connectedwindow*" {
pool connect_pool
}
default {
Take some default action?
}
}
}
Aaron
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