Forum Discussion
John_Nootens_45
Nimbostratus
21 years agoHelp me convert 4.x Rule to 9.x iRule
I built a rule based on everything I could find for examples and documentation in the LTM configuration guide and on devcentral, but I'm not able to get around syntax errors. I'll greatly appreciate ...
21 years ago
First of all, you don't specify the rule name in the rule itself in the GUI. Second, it looks like there must be a space between the event name and a curly brace. Another thing is that you might want to use the "starts_with" or "contains" operators so you don't incur the overhead of a regular expression search.
Give this a try, it should do the trick...
when CLIENT_ACCEPTED {
if { [HTTP::uri] contains "/psreports"} {
pool PSFT_Reports
} else {
pool people_soft
}
}
-Joe