03-28-2011 01:05 PM
Hi All,
Have a really simple request regarding URL redirection on ACE modules in Cat65k's.
I need to redirect incoming http request to another url with a subdirectory i.e.
-->
http://produrl/proddir/support/
is this possible on the ACE platform while maintaining the original URL i.e. the finished result would be http://testurl/proddir/support/
I have search these forums high and low, and i cannot find concreate example. Any URLs or examples are very welcome
Kind Regards
Stephen
Solved! Go to Solution.
03-29-2011 07:58 AM
No. Let me explain how it works.
The end user hits the VIP by using http://testurl/complicated_path the ACE then issue an HTTP redirect code (301 / 302) with a target (located in the "Location" field of the HTTP header of the response sent by the server)
The user then sees in the browser http://produrl/complicated_path this is the behavior of an HTTP redirection. I don't see any way to redirect a user while maintaining the source name.
Anyway there is a way to rewrite the Host field on the fly from the client's requests if your "produrl" and "testurl" are hosted in the form of virtual hosts on the same serverfarm.
03-28-2011 01:14 PM
rserver redirect SERVER1
webhost-redirection http://produrl.domain.com%p
inservice
serverfarm redirect SFARM1
rserver SERVER1
inservice
with a L7 classmap to classify the traffic (only if needed) :
class-map type http loadbalance match-all L7-CM
2 match http header Host header-value "testurl[.]domain[.]com"
03-29-2011 01:45 AM
Hi
Thanks for the reply. It looks on the surface to me that the config you gave me will only testurl to produrl. And that the path to be tacked on at the end will have to be tasked on when entering http://testurl in the browser. If i am mistaken please let me know. Does your config actually redirect http://testurl to http://produrl/support/proddir/ while displaying https://testurl in the browser?
Thanks again
Stephen
03-29-2011 07:58 AM
No. Let me explain how it works.
The end user hits the VIP by using http://testurl/complicated_path the ACE then issue an HTTP redirect code (301 / 302) with a target (located in the "Location" field of the HTTP header of the response sent by the server)
The user then sees in the browser http://produrl/complicated_path this is the behavior of an HTTP redirection. I don't see any way to redirect a user while maintaining the source name.
Anyway there is a way to rewrite the Host field on the fly from the client's requests if your "produrl" and "testurl" are hosted in the form of virtual hosts on the same serverfarm.
03-30-2011 05:57 AM
Thats a great, explanation. Thanks.
I will implement this and let you know how it works.
Regards
Stephen
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