The second one checks for the uri of /maintenance and then calls an "event disable all".i understand event disable will prevent this irule being triggered by subsequence request in this connection such as image inside html file.
without event disable
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
rules {
rule1
rule2
}
profiles {
http {}
tcp {}
}
}
[root@ve10:Active] config b rule rule1 list
rule rule1 {
when HTTP_REQUEST priority 10 {
log local0. [HTTP::uri]
}
}
[root@ve10:Active] config b rule rule2 list
rule rule2 {
when HTTP_REQUEST priority 20 {
log local0. [HTTP::uri]
}
}
[root@ve10:Active] config tail -f /var/log/ltm
Dec 5 00:59:16 local/tmm info tmm[7926]: Rule rule1 : /
Dec 5 00:59:16 local/tmm info tmm[7926]: Rule rule2 : /
Dec 5 00:59:16 local/tmm info tmm[7926]: Rule rule1 : /f5.gif
Dec 5 00:59:16 local/tmm info tmm[7926]: Rule rule2 : /f5.gif
with event disable
[root@ve10:Active] config b rule rule1 list
rule rule1 {
when HTTP_REQUEST priority 10 {
log local0. [HTTP::uri]
event disable all
}
}
[root@ve10:Active] config b rule rule2 list
rule rule2 {
when HTTP_REQUEST priority 20 {
log local0. [HTTP::uri]
}
}
[root@ve10:Active] config tail -f /var/log/ltm
Dec 5 01:00:42 local/tmm info tmm[7926]: Rule rule1 : /