Forum Discussion
Raja_M
Nimbostratus
May 20, 2018Irule is not working as expected for string based allow the user to the VIP
We have configured irule to allow users to connect the Pool members only contains with the below string to lower only if not it will through message like "Sorry, this page is restricted", for all the...
Simon_Blakely
Employee
May 20, 2018You have included upper case characters in your comparison string after explicitly doing a
[string tolower [HTTP::uri]]when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] contains "/solr/variants/select" ) ||
([string tolower [HTTP::uri]] contains "/solr/offers/select" ) ||
([string tolower [HTTP::uri]] contains "/solr/products/select" ) ||
([string tolower [HTTP::uri]] contains "/solr/searchbyname/select") ||
([string tolower [HTTP::uri]] contains "/solr/searchbylinenr/select") ||
([string tolower [HTTP::uri]] contains "/solr/categories/select") }
{ pool Pool_8983 }
else { HTTP::respond 200 content { Sorry, this Page is restricted. }
}
}
That should fix your irule.
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