Forum Discussion
Jean_42123
Nimbostratus
Sep 25, 2010URGENT - HELP required
Guys,
I am trying to write down the below i-rule but i am getting an error saying [undefined procedure: else][else{discard}]
could you please advise how to fix it ?
when HTTP_REQUEST {
if {[HT...
The_Bhattman
Nimbostratus
Sep 25, 2010Hi Jean,
You have the right syntax. My thoughts are that it's the spacing in the right spots
In other words, if your iRule displays similar to the following you could receive the error.
when HTTP_REQUEST { if {[HTTP::uri] contains "/mmsc.omanmobile.om:10021/mmsc" } { pool NWG_WAP2 } else { discard } }
So then you can change it to the following which should work:
when HTTP_REQUEST {
if {[HTTP::uri] contains "/mmsc.omanmobile.om:10021/mmsc" } {
pool NWG_WAP2
} else {
discard
}
}
BTW: The "/mmc.omanmobille.om:10021/mmsc" doesn't look like the correct syntax in a URI.
Is this original URL suppose to be http://mmc.omanmobille.om:10021/mmsc" ? if so then the URI would actually be "/mmsc"
I hope this helps
Bhattman
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