cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
851
Views
0
Helpful
1
Replies
ggn
Beginner
Beginner

Rewrite header dependent on rserver on Ace 4710

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

1 REPLY 1
jsirstin
Beginner

Gardar,

Unfortunately the ACE cannot rewrite a header based on what rserver that gets the request. Both of the rservers would need to listen for the same host header.

Regards

Jim

Content for Community-Ad