Forum Discussion
mike03_367540
Nimbostratus
Aug 08, 2018irule to redirect traffic to pool for two url
Looking for an irules to redirect traffic to pool for only two specific url
- Samir_Jha_52506
Noctilucent
Hope its URL. Check it out
when HTTP_REQUEST { if { (string tolower [HTTP::host] equals "www.xyz.com") or (string tolower [HTTP::host] equals "www.pqr.com") } { pool pool_common_ABC } }
- mike03_367540
Nimbostratus
Thanks for quick response can we add else command and rest of traffic should be
- Samir_Jha_52506
Noctilucent
Yes. we can use.
when HTTP_REQUEST { if { ([string tolower [HTTP::host]] equals "www.xyz.com") or ([string tolower [HTTP::host]] equals "www.pqr.com") } { pool pool_common_ABC } else { reject } }
- mike03_367540
Nimbostratus
error: [invalid index: should be integer or "end"][equals]
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