Forum Discussion
DEJ_159363
Apr 23, 2015Cirrus
Hello,
For iRule 3, it is possible your matchclass command may be causing issues. It was deprecated in 10.x. The new command would be 'class match'. I'm unsure about the rest with my first glance.
https://devcentral.f5.com/wiki/iRules.class.ashx
when HTTP_REQUEST {
Check if path is not in whitelist datagroup
if {![class match [string tolower [HTTP::path]] starts_with webservices_allowed_paths]} {
HTTP::redirect https://www.company.com
}
}
- Rosieodonell_16Apr 23, 2015CirrusMade the changes as you suggested and it it still just redirecting. It's like its not reading what is in the dataset group anymore. I tried entering the link https://services.company.com/AccessManagementExt/, this should see that /AccessManagementExt/ is allowed and should resolve fine. Rather it is going to https://www.company.com.
- DEJ_159363Apr 23, 2015CirrusI'm curious if the string isn't matching in the data group since you're doing the match with string to lower but the data group string has capitalized letters.
- What_Lies_Bene1Apr 24, 2015CirrostratusI would think you are correct Dareuja.