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. And see here for current known issues.

New Member

ACE Module HTTP Rewrite Problem

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

Everyone's tags (5)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

ACE Module HTTP Rewrite Problem

Hi,

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

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

Regards,
Siva

3 REPLIES
Cisco Employee

ACE Module HTTP Rewrite Problem

Hi,

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

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

Regards,
Siva

New Member

ACE Module HTTP Rewrite Problem

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

Cisco Employee

ACE Module HTTP Rewrite Problem

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

642
Views
0
Helpful
3
Replies
CreatePlease login to create content