Forum Discussion
Lovleen_Arora
Nimbostratus
Jun 26, 2018Select persistence based on URL path
Hi team,
we have a requirement to publish exchange(about 8 backend servers) via F5, and do persistence base on the URL path typed in the browser by user. for example a attached image please.
Is t...
Only1masterbla1
Cirrus
Jun 26, 2018Check sample iRule: https://devcentral.f5.com/Wiki/Default.aspx?Page=persist&NS=iRules
CodeSelect different persistence methods by HTTP URIwhen HTTP_REQUEST {
Check the requested URI switch -glob [HTTP::uri] { "/path1/* - "/path2/* { Request was for an IIS URI so select the pool and set a pool-specific cookie pool iis_pool persist cookie insert iis_persist 0 } default { Request was for an iPlanet URI so select the pool and source address persistence with a /24 source mask pool iplanet_pool persist source_addr 255.255.255.0 0 } } }
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