cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
954
Views
0
Helpful
1
Replies

Rewrite header dependent on rserver on Ace 4710

ggn
Level 1
Level 1

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
Level 1
Level 1

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: