Forum Discussion
Gary_Bristol_19
Nimbostratus
Oct 12, 2015Irule to External Data Group not pulling up second data field
In using an External Data Group everything seems to work except for the pulling up of the second data area.
when RULE_INIT {
Turn Debug on or off (0=off 1=on)
Turn debug off in prod
...
Gary_Bristol_19
Nimbostratus
Oct 12, 2015when RULE_INIT {
Turn Debug on or off (0=off 1=on)
Turn debug off in prod
set static::redir_debug 0
}
when HTTP_REQUEST {
Use following to match against datagroup
set match_string [string tolower [HTTP::host]]
append match_string [string tolower [HTTP::path]]
if {$static::redir_debug}{log local0. "Match String: $match_string"}
Lookup the redirect or pool based upon match_sting value
set goto [class lookup $match_string www_ou_edu_redir_class]
if {$static::redir_debug}{log local0. "Goto: $goto"}
if { [getfield $goto "," 1] equals "pool" }{
if {$static::redir_debug}{log local0. "Pool declaration detected. Going to: [getfield $goto "," 2]"}
pool [getfield $goto "," 2]
} else {
if {$static::redir_debug}{log local0. "Redirect declaration detected. Redirecting to: [getfield $goto "," 2]"}
HTTP::redirect https://[getfield $goto "," 2]
}
}
Gary_Bristol_19
Nimbostratus
Oct 12, 2015here is a sample of the Data
aasa.ou.edu := redir,www.ou.edu/studentlife/diverse_communities/asian_american_studentlife/groups/aasa.html,
academictech.ou.edu := redir,ouacademictech.com,
action.ou.edu := pool,ouwww_bostitch,
admissions.ou.edu := redir,www.ou.edu/admissions.html,
admissions.ou.edu/calendar := redir,www.ou.edu/admissions/calendar,
admissions.ou.edu/gened.htm := redir,www.ou.edu/enrollment,
admissions.ou.edu/records.html := redir,www.ou.edu/recordsandtranscripts,
admissions.ou.edu/registration.html := redir,www.ou.edu/enrollment,
admissions.ou.edu/transcripts.html := redir,www.ou.edu/recordsandtranscripts,
advisement.ou.edu := redir,www.ou.edu/advising.html,
ags.ou.edu := redir,www.ou.edu/ags.html,
ags.ou.edu/~ := redir,http://parker.ou.edu,
airport.ou.edu := =,www.ou.edu/airport.html,
alc.ou.edu := pool,ouwww_bostitch,
alc.ou.edu := redir,http://www.ou.edu/univcoll/alc,
alerts.ou.edu := redir,www.ou.edu/ouit/help/alerts,
alumni.coa.ou.edu := redir,www.ou.edu/content/architecture/aud/alumni_friends.html,
alumni.ou.edu := redir,http://www.ou.edu/alumni,
ame.ou.edu := redir,www.ou.edu/coe/ame/home.html,
annualreport.ou.edu := redir,www.ou.edu/web/about_ou/communityimpactreport,
aoi.ou.edu := pool,ouwww_bostitch,
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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