cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
885
Views
0
Helpful
4
Replies

configuration for URL redirection

Hi All,

I'm working on a configuration part to re-direct the connection from the client to anonther URl.

In other words a request from the client to the URL http://X should be forwaded to http://Y

Can anybody share the configuration for this request?

Regards,

Thiyagu                  

4 Replies 4

Jorge Bejarano
Level 4
Level 4

Thiyagu,

I understand the following:

If a user A types in the browser: http://www.xxx.com it should be redirected to be: http://www.yyy.com, correct?

If that´s the case then it should be something like:

policy-multimatch VIP

  class  VIP_SERVER1

  load balance vip inservice

  load balance policy POLICY-SERVERXXX

  class  VIP_SERVER2

  load balance vip inservice

  load balance policy POLICY-SERVERYYY

class-map match-any VIP_SERVER1

  2 match virtual-address 10.10.10.11  tcp eq www

policy-map type loadbalance http first-match POLICY-SERVERXXX

  class class-default

    serverfarm REDIRECT_HTTP_SERVER2

serverfarm redirect REDIRECT_HTTP_SERVER2

  rserver SERVER2_REDIRECT

    inservice

rserver redirect SERVER2_REDIRECT

  webhost-redirection http://www.yyy.com 301

  inservice

class-map match-any VIP_SERVER2

  2 match virtual-address 10.10.10.12 tcp eq www

policy-map type loadbalance http first-match POLICY-SERVERYYY

  class class-default

    serverfarm HTTP_SERVER2

serverfarm host HTTP_SERVER2

  rserver SERVER2

    inservice

rserver SERVER2

  ip address z.z.z.11

    inservice

Try and share the configuration then we can correct it if it is required!

Jorge

Hi Jorge,

Can you help me to know add the L7 policy-map of the source URL in L4 global policy-map.

policy-multimatch VIP

  class  VIP_SERVER1

  load balance vip inservice

  load balance policy POLICY-SERVERXXX

just trying to understand the data flow for this configuration.

Regards,

Thiyagu

Hi Thiyag,

this is what you want to achieve :

from the client to the URL

http://X.com     << Front end VIP

should be forwaded to

http://Y.com    << backend server 

As per your description it seems you want to rewrite the URL.

This was posted in one of the previous post:

regards,

Ajay Kumar

Thiyagu,

Could you explain a little bit more what you mean?

Jorge

Review Cisco Networking for a $25 gift card