URL switching and diferent persistence
![undergl](https://us.v-cdn.net/6031803/uploads/userpics/104/nPJT08D20ONKE.gif)
Hi, It's possible to assign different persistence in an URL switching deployment?
Backend
http://server1:8080/site1
http://server1:8080/site2
Service group
slb service-group sg-app tcp
method least-connection
member server1 8080
member server2 8080
2 services are in the same SG,
Whe user access the VIP, it's possible to apply different persistence using URL switching?
xxxx.com/site1 --> source ip
xxxx.com/site2 --> no persistence or cookie
Thanks
Backend
http://server1:8080/site1
http://server1:8080/site2
Service group
slb service-group sg-app tcp
method least-connection
member server1 8080
member server2 8080
2 services are in the same SG,
Whe user access the VIP, it's possible to apply different persistence using URL switching?
xxxx.com/site1 --> source ip
xxxx.com/site2 --> no persistence or cookie
Thanks
0
Comments
Hi,
Just try using assiciating following aflex logic without adding any persistency template at service level:
when HTTP_REQUEST {
if {[HTTP:uri] starts_with "/site1"} {
persist uie [IP::Client_addr]
}
}
Regards