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 reading the forum and found that I need to creat iRule for this, let me know if this is the correct translation.
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "connectedwindow"} {
pool connect_pool
}
}
is there a better way to write this or will this even work?
here is sample from CSS:
content beta.pa
vip address 1.1.1.1
add service ABCserver
protocol tcp
port 80
url "/a*"
active
content beta_conn.pa
vip address 1.1.1.1
add service ABCserver
protocol tcp
port 80
url "/connectedwindow*"
active
Thanks in advance.
- hoolio
Cirrostratus
/a* with string matching equates towhen HTTP_REQUEST { Check requested URI switch -glob [HTTP::uri] { "/a*" { pool a_pool } "/connectedwindow*" { pool connect_pool } default { Take some default action? } } }
- Allim_63326
Nimbostratus
Thanks Aaron for the quick reply, I will use glob style wildcard matching, we don't have any default action. Can I just use like you recommended.
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