I would like rewrite the Host Header with pendency of pool Member.
I try the following:
when LB_SELECTED {
if { [LB::server addr] contains "194.76.212"} {
HTTP::header replace "Host" "ff.geobasis.de"
#log local0. "Node FF: [LB::server addr]"
}
if { [LB::server addr] contains "194.76.232"} {
HTTP::header replace "Host" "zit.geobasis.de"
#log local0. "Node ZIT: [LB::server addr]"
}
}
It’s not worked…
Any idea for solution?
Lidev
2
Hi schoekek,
I’m not a huge fan of using an iRule when an LTM Policie can do the job.
Have you try to use Local Traffic Policies to do this Host header rewrite ?
if you need more infos, see below :
Regards
Thx for the fast response.
But i don’t found any conditions for matching the Pool Members.
I must replace the Host header per request in conditon to distributed pool member…
Lidev
4
My bad, I was see “Forward traffic” in the action chart and I thought it was a conditions matching !
@all, any idea to resolv my problem?
add some logging, does the if { [LB::server addr] contains “194.76.212”} hit or not?
in the example about LB::server they use a little different approach for checking IP
i would try that for sure.