Forum Discussion
sintrix_183828
Nimbostratus
Jun 06, 2016iRULE to route a single URI to a specific node, all other URI's should load balance as expected.
I need to make changes to route https://authapp.corp.com/PayPalHandler/handler.ashx request to app server node 1 (AUTHAPP1).
All other traffic should continue to round robin between the 2 load balanced servers AUTHAPP1 & AUTHAPP2.
Any ideas?
3 Replies
- sintrix_183828
Nimbostratus
Should this work?
when HTTP_REQUEST { if { [HTTP::uri] starts_with "/PayPalHandler/handler.ashx" } { pool authapp-443 member 192.168.12.20 443 } else { pool authapp-443 } }- Vijay_E
Cirrus
My recommendation is not to use the node command in iRule. I have seen it break persistence and have run into issues when migrating from v10 to v11. Ideally, create a new pool with just the authapp1 pool member. Check to see if the iRule posted addresses your questions/requirements.
- Vijay_E
Cirrus
Untested. The default pool is the pool containing App1 & 2 and is attached to the VS. POOL_APP1 contains APP1.
when CLIENT_ACCEPTED { set DEFAULT_POOL [LB::server pool] } when HTTP_REQUEST { if { ([HTTP::host] eq "authapp.corp.com") and ([HTTP::uri] eq "/PayPalHandler/handler.ashx")} { pool POOL_APP1 } else { pool $DEFAULT_POOL } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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