For more details, please see ourCookie Policy.


Application Delivery (ADX)

Reply
New Member
Posts: 1
Registered: ‎06-29-2013

CSW rule combining cookie persistence (based on server ID) and HTTPS redirect (based on host header).

Hello,

I have a CSW policy that needs to apply cookie persistence based on server ID and do an HTTPS redirect based on a host header. My question is, if the host header matches "test.testing.com" will the cookie persistence CSW still work or does it only match one rule and skip the other?

Sample Configuration:

csw-rule "COOKIE_PERSISTENCE" header "Cookie" search "ServerID="

csw-rule "HOST_EQUAL" header "host" equals "TEST.TESTING.COM" case-insensitive

csw-policy "COOKIE-WITH-REDIRECT"

match "COOKIE_PERSISTENCE" persist offset 0 length 4 group-or-server-id

match "HOST_EQUAL" redirect "test.testing.com" "*" ssl

default forward 10

default rewrite insert-cookie "ServerID"

Thank you,

John

Broadcom
Posts: 70
Registered: ‎03-14-2009

Re: CSW rule combining cookie persistence (based on server ID) and HTTPS redirect (based on host header).

Hi John,

for CSW it is first match and action only.

check for nested rules in the SLB Guide.

Maybe OpenScript will help you.

Alex

Join the Broadcom Community

Get quick and easy access to valuable resources across the Broadcom Community Network.