Forum Discussion
jsipes
Nov 07, 2011Nimbostratus
Redirect to Reporting Server
My redirect does not seem to be working. Does the syntax look good to you? The reporting server pool (pool_int_aprRPT_http )never gets a hit. Any help would be most appreciated. Thank you.
iRule
when HTTP_REQUEST {
set requested_path [string tolower [HTTP::path]]
if { [matchclass $requested_path starts_with $::class_Aprimo_Reports_Paths] } {
select Report Server pool
pool pool_int_aprRPT_http
} else {
select web server pool
pool pool_int_apr_http
}
}
DATA GROUP LIST
Name class_Aprimo_Reports_Paths
Type String
/aprimo/getmpmexportfile
/aprimo/getmpmreport
/aprimoreports
/crystalreports
- Michael_YatesNimbostratusHi jsipies,
when HTTP_REQUEST { if { [matchclass [string tolower [HTTP::path]] starts_with $::class_Aprimo_Reports_Paths] } { select Report Server pool log local0. "Reports Match: [HTTP::host][HTTP::uri]" pool pool_int_aprRPT_http } else { select web server pool log local0. "No Reports Match: [HTTP::host][HTTP::uri]" pool pool_int_apr_http } }
- hooleylistCirrostratusIf you're on 9.4.4+ you should remove the $:: prefix from the datagroup name in the iRule.
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