URL switching and diferent persistence

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

Comments

  • jserranojserrano Member

    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

Sign In or Register to comment.