Forum Discussion
Kevin_Stewart
Apr 18, 2014Employee
Your life will be a lot easier if you use a data group for this large list of URIs.
when RULE_INIT {
set static::DEBUG 1
}
when HTTP_REQUEST {
if { [active_members QA-HC-HTTP] < 1 } {
if { $static::DEBUG } { log local0. "Primary pool offline" }
pool QA-PH
} elseif { [class match [string tolower [HTTP::uri]] starts_with uri_list] } {
pool QA-HC-HTTPDNN
} else {
pool QA-HC-HTTP
}
}
** where "uri_list" is a string-based data group. Example:
/portals/" := ""
"/js/" := ""
"/controls/" := ""
"/uk/" := ""
"/us/" := ""
"/ca/" := ""
"/admin/controlpanel/" := ""
"/webresource" := ""
"/scriptresource" := ""
"/resources/" := ""
"/providers/" := ""
"/linkclick" := ""
"/documentation/" := ""
"/desktopmodule/" := ""
"/config/" := ""
"/components/" := ""
"/bin/" := ""
"/app_themes/" := ""
"/app_globalResources/" := ""
"/app_data/" := ""
"/app_code/" := ""
"/app_browser/" := ""
"/dnnaadmin/" := ""
"/contactus/" := ""
"/resourcecenter/i" := ""
"/resourcecenter/r" := ""
"/resourcecenter/j" := ""
"/resourcecenter/e" := ""