Forum Discussion
JP_42120
Nimbostratus
Oct 18, 2012irule performance: combine multiple irules
Hi,
We have an several irules that we are trying simplify and combine for better performance.
first to block certain URI's
when HTTP_REQUEST {
switch [HTTP::uri] {
"...
What_Lies_Bene1
Cirrostratus
Oct 19, 2012Cool. You can squeeze that last bit down to this and save some cycles as it'll only be invoked if it's port 80;
if { [TCP::local_port] == 80 } {
switch -glob [string tolower [HTTP::path]] {
"/login*" -
"/app/login_user*" -
"/app/new*" -
"/app/associate_new*" -
"/account*" {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
}
}
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