ACE re-direct/re-write URL to a subpage of the VIP

Unanswered Question
Apr 30th, 2009
User Badges:


I'd like to re-direct/re-write the URL that a user is sent to when they go to a particular http VIP.

A present the process is handled by an Apache server that we are looking to remove from the backend and utilise the available functionality of the ACE.

When a user goes to "" I would actually like them to go to "" and NOT which is what is currently happening (the real backend URL wanted being

I created the following action list:-

action-list type modify http

header rewrite request Host header-value "" replace ""

which at first glance I though had done the trick but unfortunately /irj/portal is being inserted into all requests to URLs that start "" and not JUST "", i.e.

"" is automatically changed into "" which doesn't exist.

Is what I'm after possible?

thanks in advance


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Gilles Dufour Wed, 05/06/2009 - 01:57
User Badges:
  • Cisco Employee,


some theory first.

A url like is composed of a hostname : and a uri: /path/file

When this url is sent by a computer it is clear split in those 2 parts:

GET /path/file....


So, when you do a header rewrite to modify the host, all you do is change the line Host: ....

Clearly this won't work.

You have to

1/ create a class-map to match the url "/" and/or "/index.html"

2/ create a redirect serverfarm/rserver to point to the new url.

3/ create a policy-map type http loadbalance to link the url class-map with the redirect and to the link the class-default to your serverfarm

Hope this helps.



This Discussion