08-02-2012 01:14 AM
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
Solved! Go to Solution.
08-02-2012 04:41 AM
Hi,
You can redirection for this instead of rewrite. Check link below for sample config.
https://supportforums.cisco.com/thread/345693
Regards,
Siva
08-02-2012 04:41 AM
Hi,
You can redirection for this instead of rewrite. Check link below for sample config.
https://supportforums.cisco.com/thread/345693
Regards,
Siva
08-02-2012 09:42 PM
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
08-02-2012 09:54 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide