Forum Discussion
webguy9_97931
Nimbostratus
May 22, 2007iRule proxy
Hello,
I am looking to proxy requests based on:
1) UserAgent (bot detection)
2) URL patterns (foo\.html)
How do I set up the iRule to handle this?
Thanks!
JRahm
Admin
May 25, 2007
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"*foo.html" {
HTTP::redirect "www.anotherserver.com"
}
"/path/*" {
HTTP:redirect "www.yetanotherserver.com"
}
"/dir1/*" -
"/dir2/*" -
"/dir3/*" {
HTTP::redirect "www.yetagainanotherserver.com"
}
}
}
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