Forum Discussion
OttimoMassimo_1
Sep 15, 2011Nimbostratus
alteration to an existing irule
Hi,
This is definitely a newbie question, so apologies in advance!
I have a context switch within an irule like so:
"/stuff/place*" {
pool my_pool
...
nitass
Sep 15, 2011Employee
[root@orchid:Active] config b rule myrule1 list
rule myrule1 {
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/stuff/place*" {
log local0. "URI is [HTTP::uri], /stuff/place* is triggered."
}
"/stuff*" {
log local0. "URI is [HTTP::uri], /stuff* is triggered."
}
default {
log local0. "URI is [HTTP::uri], default is triggered."
}
}
}
}
Sep 16 01:21:03 tmm tmm[7053]: Rule myrule1 : URI is /, default is triggered.
Sep 16 01:21:07 tmm tmm[7053]: Rule myrule1 : URI is /stuff, /stuff* is triggered.
Sep 16 01:21:14 tmm tmm[7053]: Rule myrule1 : URI is /stuff123, /stuff* is triggered.
Sep 16 01:21:19 tmm tmm[7053]: Rule myrule1 : URI is /stuff/place, /stuff/place* is triggered.
Sep 16 01:21:21 tmm tmm[7053]: Rule myrule1 : URI is /stuff/place123, /stuff/place* is triggered.
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