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] {
"...
JP_42120
Nimbostratus
Nov 07, 2012gotcha!
so somthing like this?
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/proxy/*" -
"/content/xmlmovies/undefined*" -
"/duas/*" {
HTTP::respond 404 content "404 - file not found."
thanks.
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