Forum Discussion
Richard_Kim_270
Nimbostratus
Aug 08, 2006HTTP redirect
Hello, I am trying to use Data Groups to so I can append strings or URI's. However, whenever I try to create one I get a error on line 1:
line 1: [undefined procedure: class] [class]
Here is the iRule I am trying to use:
class reportstrings {
"reports/reports1.aspx"
"reports/reports2.aspx"
"admin/reports3.aspx"
"admin/reports4.aspx"
"reports/reportoutput"
}
when HTTP_REQUEST {
if { [matchclass [HTTP::uri] contains $::reportstrings] } {
pool RP_pool_1
}
}
- dennypayne
Employee
The class statement is not defined in the iRule itself but as a separate entity (on the Data Groups tab in the GUI or a separate statement within bigip.conf). The syntax you have there is what ends up in bigip.conf when those entries are made in the GUI. - Richard_Kim_270
Nimbostratus
Works like a charm, thanks!
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