Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

ggn
New Member

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

  • Application Networking
Everyone's tags (3)
1 REPLY
Cisco Employee

Re: Rewrite header dependent on rserver on Ace 4710

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

786
Views
0
Helpful
1
Replies
This widget could not be displayed.