Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

need help with http to http url redirect configuration on ACE.

hi all,

I have a url say http://abc.pqr.com and I wish to send 301 url redirect message to all my clients to come on http://abc.pqr.com/123.

how can i achieve it using webhost-redirection under redirect r server. or do i need to define an action list for this. I have tried using action list command, but somehow it doesn't work. and how different will webhost-redirection cmd here be in comparison to action-list rewrite command.

Also, would be very kind if any one can help me with url proper meaning of url reg-ex like %s, %p , %h as i am not sure about them.

Thanks..

4 REPLIES
Bronze

need help with http to http url redirect configuration on ACE.

Hello Ravi,

Action-list is for more specific scenarios when you need to modify something within the HTTP header this is more processing intensive so that's why achieving a 301/302 redirection throught the webhost-relocation method is the way you need to go.

Here is a snippet of how your config should look like to get this working:

rserver redirect SVR

  webhost-redirection http://%h/123

serverfarm host Web

  rserver SRV1

    inservice

  rserver SRV2

    inservice

serverfarm redirect Redirect

  rserver Redirect-SVR

    inservice

class-map type http loadbalance match-any 123

  2 match http url /123.*

policy-map type loadbalance first-match SLB

  class 123

    serverfarm SVR

  class class-default

    serverfarm Redirect

If you have any question let us know.

HTH

__ __

Pablo

New Member

need help with http to http url redirect configuration on ACE.

hi Pablo,

thanks for your reply, looking at this config guess I am almost there as the config that i tried working with is almost the same.

but here I have a query and it would be very kind of you if you can answer that for me.

the layer 7 class map you have configured here is

class-map type http loadbalance match-any 123

  2 match http url /123.*

and you are trying to jst match /123 with help of wild card mask .* i.e. only the /123 be matched in whole URL. instead why can't I match abc.pqr.com/123.*

what difference will it make in mentioning whole URL instead of jst the part of it.

and why should i not be having %p as well in webhost-redirection under redirect r server.

Bronze

need help with http to http url redirect configuration on ACE.

Hi,

The difference is that if you want to match for example the domain abc.pqr.com  and the uri /123 you will need a class-map like this:

class-map type http loadbalance match-ll 123

  2 match http url /123.*

  3 match http header Host header-value abc[.]pqr[.]com

Cesar R

--------------------- Cesar R ANS Team
New Member

Re: need help with http to http url redirect configuration on AC

hello Cesar and Pablo

as per your recomendations, I tweked my configuration further, this is how it looks know

rserver redirect 123-Redirect

   webhost-redirection http://%h/123 301

   inservice

class-map type http loadbalance match-all EmuwebX-Redirect-URLmatch-CMap

match http url /123.* 

  match http header Host header-value abc[.]pqr[.]com 

over here the things look to be working but !  however it seems to be redirecting everything there, clicking through the content seems to always redirect it to the /123 folder.

can you please help me with this.

Thanks..:)

833
Views
6
Helpful
4
Replies
CreatePlease login to create content