cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
806
Views
0
Helpful
4
Replies

Simple URL Redirect Request

stephen.stack
Level 4
Level 4

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://testurl

-->

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

========================== http://www.rconfig.com A free, open source network device configuration management tool, customizable to your needs! - Always vote on an answer if you found it helpful
1 Accepted Solution

Accepted Solutions

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.

View solution in original post

4 Replies 4

Surya ARBY
Level 4
Level 4

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"

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

========================== http://www.rconfig.com A free, open source network device configuration management tool, customizable to your needs! - Always vote on an answer if you found it helpful

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.

Thats a great, explanation. Thanks.

I will implement this and let you know how it works.

Regards

Stephen

========================== http://www.rconfig.com A free, open source network device configuration management tool, customizable to your needs! - Always vote on an answer if you found it helpful

Review Cisco Networking for a $25 gift card