Forum Discussion
Rudy_Torres_798
Nimbostratus
Oct 13, 2006Creating a data class in 9.x
I am trying to create a class in 9.x to allow only certain uri's to each web site. Here is the what the rule looks like.
class allowed_uris {
when HTTP_REQUEST {
if { ( [HTTP:...
hoolio
Cirrostratus
Oct 13, 2006Hi,
A class in past versions is now referred to in the GUI as a datagroup. You can add/view them in the GUI under Local Traffic >> iRules >> Data Group List. It's in a tab along the top to the right of iRules.
Also, the format for a rule in the GUI doesn't include the class allowed_uris { line. That would be how the class (datagroup) is shown in the bigip.conf file.
Lastly, you might want to use 'string tolower' to do a case insensitive comparison for the host comparison, and in your URI test comparison if your web application is not case sensitive.
Aaron
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