Forum Discussion
astokes_6920
Nimbostratus
Nov 11, 2010Rewrite host header to specific pool member
I've done basic host header rewrites rules in the past but I've just received an odd request that's beyond me. I'm scrapping together a solution from multiple posts but haven't got anything to pass y...
w7com_208168
Nimbostratus
Oct 28, 2015Here's how I pulled it off:
when LB_SELECTED {
set POOL [LB::server addr]
log local0.debug "Pool Member is $POOL"
switch $POOL {
10.65.16.135 { HTTP::header replace Host "strv-int2.corp.lan" }
10.65.17.62 { HTTP::header replace Host "strv-int4.corp.lan" }
default { log local0.debug "Default hit on STRV-rewrite." }
}
}
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
