Forum Discussion
Awkrd1_7470
Feb 23, 2012Nimbostratus
Unable to identify HTTP header variable for pool redirection
I have a two tier load balancing scenario where my client is accessing a load balanced SOA environment which I'll call my "upper load balance tier". The upper load balance tier accesses a VIP on the "...
Awkrd1_7470
Feb 25, 2012Nimbostratus
Ran some test this morning and used the following rule which is actually working. Thanks!
when HTTP_REQUEST {
set LogString "Client [IP::client_addr]:[TCP::client_port] -> [HTTP::host][HTTP::uri]"
log local0. "============================================="
log local0. "$LogString (request)"
foreach aHeader [HTTP::header names] {
log local0. "$aHeader: [HTTP::header value $aHeader]"
}
log local0. "============================================="
if { [HTTP::header "datacenter"] eq "01" } {
pool PROD-ITA-9045-BILLERICA
log local0. "$HTTP::header"
} elseif { [HTTP::header "datacenter"] eq "02" } {
pool PROD-ITA-9045-WINNIPEG
log local0. "$HTTP::header"
} else {
pool PROD-ITA-9045
}
}
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