Forum Discussion
Selective pool member based on uri
Hi,
Some of my webservers are not responding and we take them out from pool at times. The task is to have something like:
https://[HTTP::host]/one
select pool member 1 & at the same time it should change the uri from /one to /web/main/page
https://[HTTP::host]/two
select pool member 1 & at the same time it should change the uri from /one to /web/main/page
I tried using find classs as listed below but not very sure hot to select pool member based on uri
set uri [findclass [HTTP::path] mainredirect " "]
if {$line ne ""}{
HTTP::uri $uri
}
mainredirect is a datagroup of string type
"/one /web/main/page"
"/two /web/main/page"
H/W is LTM 1600 running 10.2
Also I am very bad in GUI and this box can only be accessed via GUI, so not very sure whether the class created should be a data group or something else.
Please suggest
12 Replies
- Ajmal_2608
Nimbostratus
Hi Steve,
Both {/one} & "/one" are giving the same results.
What I noticed is the code is working fine but there is an issue caused by the cookie persistence
The servers are checking a Session_ID and if I open the site with any /one or /two it sets a session and since the device is already having a open session, its sending the request as per the persistence entry.
Can we do something to clear / ignore the persistence and establist a fresh connection within the context of /one or /two?
- What_Lies_Bene1
Cirrostratus
OK, perhaps you could use 'persist none'?
Recent Discussions
Related Content
* 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