how can I account for all the files in the root like defaut.aspx, aboutus.html , logo.gif, etc?e.g.
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
if { [string last / $uri] == 0 or [class match -- $uri starts_with uri_class] } {
pool foo
} else {
pool qux
}
}
when HTTP_RESPONSE {
log local0. "uri: $uri pool: [LB::server pool]"
}
}
[root@ve10:Active] config b class uri_class list
class uri_class {
{
"/uri1/"
"/uri2/"
"/uri3/"
}
}
[root@ve10:Active] config cat /var/log/ltm
Aug 2 22:16:20 local/tmm info tmm[5139]: Rule myrule : uri: /uri1/something pool: foo
Aug 2 22:16:30 local/tmm info tmm[5139]: Rule myrule : uri: / pool: foo
Aug 2 22:16:33 local/tmm info tmm[5139]: Rule myrule : uri: /index.html pool: foo
Aug 2 22:17:16 local/tmm info tmm[5139]: Rule myrule : uri: /sub1/sub2/something pool: qux