Forum Discussion
Fabrice_Bobes_2
Nimbostratus
Nov 08, 2013iRule for site persistence
I have 2 active DC and while I have set up DNS persistence on the GTM by using topology load-balancing, I am trying to go a step further to cover the case where a browser may still be redirected to t...
Kevin_Stewart
Employee
Nov 08, 2013when HTTP_REQUEST {
set urihead [HTTP::host]
check the location first if wrong DC
set loc [HTTP::cookie "location"]
if { $loc == “DC2” } {
log local0. “DC2 cookie detected in DC1”
node 2.2.2.2 443
snat automap
} else {
SSL::disable serverside
}
}
when HTTP_RESPONSE {
sets the location cookie to local DC
if { $loc != “DC2” } {
HTTP::cookie insert name "location" value “DC1”
HTTP::cookie path "location" /
HTTP::cookie domain "location" $urihead
HTTP::cookie secure "location" enable
}
}
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