Forum Discussion
AngryCat_52750
Nimbostratus
Oct 24, 2013iRule to a variable for chosen pool member
currently in our dev and qa environments, we have an iRule that staticly replaces a header for an application.. we can do it this way coz we only have one member in a pool..
when ACCESS_ACL_ALLOWE...
Kevin_Stewart
Employee
Oct 24, 2013The LB_SELECTED event happens after the ACCESS_ACL_ALLOWED event, but then the HTTP_REQUEST_SEND event happens after all of that, so please give this a try:
when HTTP_REQUEST_SEND {
if { [class match [LB::server addr] equals my_host_lb_dg] } {
clientside {
HTTP::header replace Host [class match -value [LB::server addr] equals my_host_lb_dg]
}
}
}
where "my_host_lb_dg" is an arbitrary string-based data group that maps the pool member IPs to corresponding host names. Example:
10.70.0.1 := foo.example.com
10.70.0.2 := bar.example.com
10.70.0.3 := test.example.com
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