Forum Discussion
Mar 06, 2015
BIG-IP : iRule to route uri-forms for all hosts
F5 BIG-IP Virtual Edition v11.4.1 (Build 635.0) LTM on ESXi
My BIG-IP is configued with virtual-servers specific to hostname :
VIP-1 handles www.example1.com
VIP-2 handles www.example2.com
DNS...
Santokn_189503
Nimbostratus
Hi Baltostar
From the above irule i understood (Correct me if i am wrong as i am new to irule) that if the below URI matches
"/best-pool" - "/best-bar" - "/most-romantic*" "/about/termsandconditions.html" - "/about/yourpersonalinfo.html" - "/about/rewards.html"
Set the variable route_to_alt_tm to 1 and also if route_to_alt_tm is equal to 1 then choose the pool pool_alt_tm
Could me please post the complete irule and explanations also bit confuse reg. the need for set route_to_alt_tm 0
Michael_Jenkins
Mar 15, 2015Cirrostratus
the "set route_to_alt_tm 0" command is used so that when checking the variable for "1", it won't give a runtime error because the variable is not defined. The other option if you don't know whether a variable has been set is to use "[info exists VARNAME]"
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