08-18-2014 09:42 AM
Hello,
What I want to do is actually simple, however I have problem finding the solution on Cisco ACE :
Is it possible to rewrite just one part of the URL (aaa to bbb) or, redirect the user by changing only this part of the URI ?
How should I configure this function ?
Thank you for any support
Yves
Solved! Go to Solution.
08-18-2014 10:38 AM
Hi Yves,
It is a https request so to do the redirection, ACE should first be able to look into the HTTP header and that is possible by doing ssl termination and then loadbalancing the request to redirect serverfarm. If you want the ACE to rewrite the user request and send it to the server, that can be done as well.
The URL/URI rewrite feature was introduced in A5 train. Please check which version are you running? You can rewrite the HOST part but not the path of URL in earlier versions. Please see the release notes below:
The HTTP URL rewrite feature enables the ACE to rewrite URI/URL pathnames in HTTP requests. You can rewrite the URL value in an HTTP request from a client using the url rewrite command in action-list modify configuration mode.
url rewrite url_regex replace new_url_regex
Let me know if you have any questions.
Regards,
Kanwal
Note: Please mark answers if they are helpful.
08-18-2014 10:38 AM
Hi Yves,
It is a https request so to do the redirection, ACE should first be able to look into the HTTP header and that is possible by doing ssl termination and then loadbalancing the request to redirect serverfarm. If you want the ACE to rewrite the user request and send it to the server, that can be done as well.
The URL/URI rewrite feature was introduced in A5 train. Please check which version are you running? You can rewrite the HOST part but not the path of URL in earlier versions. Please see the release notes below:
The HTTP URL rewrite feature enables the ACE to rewrite URI/URL pathnames in HTTP requests. You can rewrite the URL value in an HTTP request from a client using the url rewrite command in action-list modify configuration mode.
url rewrite url_regex replace new_url_regex
Let me know if you have any questions.
Regards,
Kanwal
Note: Please mark answers if they are helpful.
08-19-2014 03:57 AM
Hi Kanwalsi,
Thank you very much for your fast and helpful answer. Yes, it is exactly what I want to do. I will be able to test it only next monday unfortunately and will let you know on the result
Thanks again !
Yves
02-02-2015 07:27 PM
Hi Kanwalsi,
have you tested this ? is it working ?
02-03-2015 01:57 AM
Hi,
Unfortunately, I was not able to test this solution, because the requirements changed and finally, no URL rewrite was necessary anymore... However, what Kanwal proposed was exactly what I was asking for
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