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 {[HTTP::uri] contains "/mmsc.omanmobile.om:10021/mmsc" } {
pool NWG_WAP2
}
else {
discard
}
}
Thanks in advance
Jean
- The_Bhattman
Nimbostratus
Hi Jean,when HTTP_REQUEST { if {[HTTP::uri] contains "/mmsc.omanmobile.om:10021/mmsc" } { pool NWG_WAP2 } else { discard } }
when HTTP_REQUEST { if {[HTTP::uri] contains "/mmsc.omanmobile.om:10021/mmsc" } { pool NWG_WAP2 } else { discard } }
- The_Bhattman
Nimbostratus
Hi Jean, - Jean_42123
Nimbostratus
Hi, - Jean_42123
Nimbostratus
The script would look like this if i want to use the [HTTP::host] in the if statement, Correct?when HTTP_REQUEST { if {[HTTP::host] contains "mmsc.omanmobile.om" } { pool NWG_WAP2 } else { discard } }
- Chris_Miller
Altostratus
Posted By Jean on 09/26/2010 12:38 AM The script would look like this if i want to use the [HTTP::host] in the if statement, Correct?when HTTP_REQUEST { if {[HTTP::host] contains "mmsc.omanmobile.om" } { pool NWG_WAP2 } else { discard } }
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