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

Cisco ACE URL re-write / append

normbeef
Level 1
Level 1

Hi everyone..

I have a situation where a customer is moving from a legacy F5 to Cisco ?? 

Anyway the web site uses only http  and the rservers only listen on 80  also.   but the customer wants to have the URL re-directed or re-written

so for example:

http://website.com   

to

http://website.com/something/

The issue I have is that a re-direct would match a class map on IP then re-direct then then come back into the ACE towards the same IP..  thus it would continully hit the re-direct.

this is the version of code on the ACE we are trying to use:

ftware

  loader:    Version 12.2[121]

  system:    Version A2(3.6a) [build 3.0(0)A2(3.6a)]

  system image file: [LCP] disk0:c6ace-t1k9-mz.A2_3_6a.bin

  installed license: no feature license is installed

4 Replies 4

Kanwaljeet Singh
Cisco Employee
Cisco Employee

Hi Norm,

You can match on the basis of URL using class-map type http.

Regards,

Kanwal

Kanwaljeet Singh
Cisco Employee
Cisco Employee

Hi Norm,

To elaborate a bit you can redirect users coming with website.com and anyone coming with /something should be loadbalanced. You will need to use the combination or L3/l4 class map and L7 class map matching URL.

Let me know if you have any questions or doubts.

Regards,

Kanwal

Hi,   I think we have a misunderstanding..

Nobody comes into the load balancer with anything apart from

http://website.com

I need the load balancer to add    /something/    to the end of the URL and forward it onto the rserver below.  (on port 80)

so you hit the VIP class map on  IP /  port  80   

Then the load balancer adds the /something/ 

then forwards you on to the Application server.  

Hi Norm,

You can use action-list and try the below example. Let me know how it goes.

action-list type modify http TESTURL-ACTION
 header rewrite request Host header-value " www[.]a[.]com/test[.]html"
replace " www[.]a[.]com/test/test[.]html"

So the above example rewrites the request www.a.com/test.html to www.a.com/test/test.html

Regards,
Kanwal