cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1008
Views
0
Helpful
3
Replies

ACE Module HTTP Rewrite Problem

m.imaduddin
Level 1
Level 1

Hi All,

We are currently testing ACE Module feature to do http rewrite on backend server.

Users will access http://VIP/test, and ACE should rewrite the request to http://VIP/prod

I have checked config-guide and Netpro case-studies but no result. User still cant access http://VIP/test, but they can access http://VIP/prod directly

These are the configurations:

rserver host S1

  ip address 10.2.2.2

  inservice

serverfarm host SF-PROD

  probe WEB_SERVERS

  rserver S1

    inservice

class-map type http loadbalance match-any L7CLASS-PROD

  2 match http url /test/*

policy-map type loadbalance http first-match WEB_L7_POLICY

class L7CLASS-PROD

    serverfarm SF-PROD

    action HTTP_MODIFY

action-list type modify http HTTP_MODIFY

  header rewrite request Host header-value "(.*)test(.*)" replace "%1prod%2"

Please check my configuration

Thanks

Imad

1 Accepted Solution

Accepted Solutions

sivaksiv
Cisco Employee
Cisco Employee

Hi,

You can redirection for this instead of rewrite. Check link below for sample config.

https://supportforums.cisco.com/thread/345693

Regards,
Siva

View solution in original post

3 Replies 3

sivaksiv
Cisco Employee
Cisco Employee

Hi,

You can redirection for this instead of rewrite. Check link below for sample config.

https://supportforums.cisco.com/thread/345693

Regards,
Siva

Hi Siva,

I can access the server correctly by using HTTP redirect..But still im still wondering why cant i configured it with rewrite.

Btw thank you for your informations

Best Regard,

Imad

Hi Imad,

Glad it worked. Actually url rewrite is still not possible on ACE and expected to be in future release. If it is actually in a header such as location then yes, however if it is in  the request uri then no since that is not a header as ACEcannot do url rewrite.

Regards,

Siva

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: