Hi,
I have a loadbalanced HTTP server which loadbalances between two rservers.
Is it possible to rewrite the http header based on which rserver the request is going to ?
Following is a part of the config to explain.
--------------------------------------------------------------------------------------------------------------------------------
rserver host guf1
ip address 10.172.30.21
inservice
rserver host guf2
ip address 10.172.30.22
inservice
serverfarm host guf
probe HTTP-GET
rserver guf1 80
backup-rserver guf2 80
inservice
rserver guf2 80
inservice standby
action-list type modify http STATUS_REWRITE
header rewrite both Host header-value "status.test.com" replace "guf1.test.com"
policy-map type loadbalance first-match status.test.com-l7slb
class class-default
serverfarm guf
action STATUS_REWRITE
-------------------------------------------------------------------------------------------------------------------------------
The above works if the request goes to rserver guf1 but if guf1 is unavailable and the request goes to rserver guf2 then I need to replace the Host header with "guf2.test.com" instead of "guf1.test.com"
Is this possible ?
Best,
Gardar Nielsen