Forum Discussion
Parveez_70209
Nimbostratus
Oct 25, 2014'OR' logic between Daga-Groups present in Irule
Hi Team,
Query related to the below Irule:
dg_glob_blocks_starts_with and dg_lenovo_mgd_url_blocks are data groups, we wanted to have 'OR' logic between them, will || work ?
2.If point 1. is cor...
kunjan
Nimbostratus
Oct 26, 2014Parenthesis missing after elseif
when HTTP_REQUEST priority 500 {
if {
[class match [HTTP::uri] contains dg_glob_block_contains]
} {
HTTP::redirect "http://www.XYZ.com"
}
elseif {
[class match [HTTP::uri] starts_with dg_glob_blocks_starts_with ] or
[class match [HTTP::uri] starts_with dg_lenovo_mgd_url_blocks]
} {
HTTP::respond 302 Location "http://www.XYZ.com"
log local0. " redirected to http://www.XYZ.com"
return
}
}
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