cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
887
Views
0
Helpful
1
Replies

URL Redirector

rngai
Level 1
Level 1

Hi,

Would it be possible to configure ACE4710 to accept tcp connection on port 8900 and redirect them to 2 different rserver + url + different port number? Example:

VIP:

www.abc.com:9999/test1   #redirect to (a) or (d)

www.abc.com:9999/test2   #redirect to (b) or (e)

www.abc.com:9999/test3   #redirect to (c) or (f)

Redirected URL (either round-robin or lease-connection):

a) www.def.com:8888/test1

b) www.def.com:8888/test2

c) www.def.com:8888/test3

d) www.ghi.com:8888/test1

e) www.ghi.com:8888/test2

f) www.ghi.com:8888/test3

What had changed after redirected url is the tcp port must change from 9999 to 8888, the url itself and the %p (or uri) must retain. Here's the config I came up and I am trying to make it work.

rserver redirect rs-defcom1
webhost-redirection http://www.def.com:8888/test1 302

rserver redirect rs-defcom2
webhost-redirection http://www.def.com:8888/test2 302

rserver redirect rs-defcom3
webhost-redirection http://www.def.com:8888/test3 302

rserver redirect rs-ghicom1
webhost-redirection http://www.ghi.com:8888/test1 302

rserver redirect rs-ghicom2
webhost-redirection http://www.ghi.com:8888/test2 302

rserver redirect rs-ghicom3
webhost-redirection http://www.ghi.com:8888/test3 302

serverfarm redirect sf-trial1
  rserver rs-defcom1
  inservice
  rserver rs-defcom2
  inservice
  rserver rs-defcom3
  inservice
  rserver rs-ghicom1
  inservice
  rserver rs-ghicom2
  inservice
  rserver rs-ghicom3
  inservice

class-map match-any cm-trial1
  2 match http header host header-value "www[.]abc[.]com/test1"
  4 match virtual-address 1.1.1.1 tcp eq 9999

class-map match-any cm-trial2
  2 match http header host header-value "www[.]abc[.]com/test2"
  4 match virtual-address 1.1.1.1 tcp eq 9999

class-map match-any cm-trial3
  2 match http header host header-value "www[.]abc[.]com/test3"
  4 match virtual-address 1.1.1.1 tcp eq 9999

policy-map type loadbalance first-match pm-trial1
  class cm-trial1
    serverfarm sf-trial1
  class cm-trial2
    serverfarm sf-trial2
  class cm-trial3
    serverfarm sf-trial3

Appreciate if you have insights to share.

Thank you.

Ryan

1 Reply 1

amacuz
Level 1
Level 1

Hi Ryan,

I think you need to keep the serverfarms separate:

serverfarm redirect sf-trial1
  rserver rs-defcom1
  inservice
  rserver rs-ghicom1
  inservice

serverfarm redirect sf-trial2

  rserver rs-defcom2

  inservice
  rserver rs-ghicom2
  inservice

serverfarm redirect sf-trial3

  rserver rs-defcom3
  inservice
  rserver rs-ghicom3
  inservice

Is that what you want?

Alessandro

--

If  this helps you and/or answers your question please mark the question as  "answered" and/or rate it, so other users can easily find it.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: