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

Cisco 11503 & URL redirection or Url rewrite query

sandeep.menon
Level 1
Level 1

Greetings.

Thank you for your valuable time.

I would kindly seek your guidance in getting this information regarding cisco 11503 can do either multiple URL redirection or url rewrite.

Public users use the url either http://jobs. A.com:80 , http://jobs.B.com:80, http://jobs.C.com:80 from internet. The request goes to our firewall which resolves the public ip of the the all three urls to single DMZ load balancer ip . The firewall will translate request from port 80 to port 8003 on the LB. The lb needs to do URL redirection/ or rewrite whatever best suited to Internal servers 1 & 2 where actual application is hosted and internal urls are pointing to either A.htm , B.htm or C.htm hosted internally on Jobs.B.com

  • •a) Jobs.B.com:8003/A.htm
  • •b) Jobs.B.com:8003/B.htm
  • •c) Jobs.B.com:8003/C.htm

Appreciate if you can guide if this is possible to be done and Cisco 11503 do the same

Thanks

1 Accepted Solution

Accepted Solutions

Hi Sandeep,

with your IPs:

  content test

     vip address 10.200.2.13

     add service redirect

     port 80

     protocol tcp

     url "//jobs.a.com"

     active

service redirect

  ip address 1.1.1.1======this is just a dummy IP address to complete the config

  keepalive type none

  type redirect

  no prepend-http

  redirect-string http://jobs.b.com:8003/a.html

  active

content test

     vip address 10.200.2.13

     add service lb1

     add service lb2

     port 8003

     protocol tcp

     url "/a.html"

     active

service lb1

ip address 10.200.2.11

active

service lb2

ip address 10.200.2.12

active

You probably will have to create also a source group using the same VIP address and add destination service

---------------------
Cesar R
ANS Team

--------------------- Cesar R ANS Team

View solution in original post

4 Replies 4

Cesar Roque
Level 4
Level 4

Hi Sandeep,

It should look like this:

  content test

     vip address x.x.x.x

     add service redirect

     port 80

     protocol tcp

     url "//jobs.a.com"

     active

service redirect

  ip address 1.1.1.1

  keepalive type none

  type redirect

  no prepend-http

  redirect-string http://jobs.b.com:8003/a.html

  active

  content test

     vip address x.x.x.x

     add service lb1

     add service lb2

     port 8003

     protocol tcp

     url "/a.html"

     active

This is just for jobs.a.com, you need the same config for the other domains.

---------------------
Cesar R
ANS Team

--------------------- Cesar R ANS Team

Hi Ceroque


Thank you so much for responding to my query.

Appreciate if you could help me fill in some of the blanks

My Public ip is 5.5.5.5:80  and i have natted it to loadbalancer vip 10.200.2.13 an inside ip address

a) The two servers  server1 and server 2 have  10.200.2.11:8003 & 10.200.2.12 :8003 .. I have created a vip address 10.200.2.13 on the lb .. This is the VIP you are mentioning below right
or is it the public ip address that i have natted on firewall.


b) In service redirect you mentioned an ip 1.1.1.1 .. What is that ip address ?

Thanks for your valuable time

Hi Sandeep,

with your IPs:

  content test

     vip address 10.200.2.13

     add service redirect

     port 80

     protocol tcp

     url "//jobs.a.com"

     active

service redirect

  ip address 1.1.1.1======this is just a dummy IP address to complete the config

  keepalive type none

  type redirect

  no prepend-http

  redirect-string http://jobs.b.com:8003/a.html

  active

content test

     vip address 10.200.2.13

     add service lb1

     add service lb2

     port 8003

     protocol tcp

     url "/a.html"

     active

service lb1

ip address 10.200.2.11

active

service lb2

ip address 10.200.2.12

active

You probably will have to create also a source group using the same VIP address and add destination service

---------------------
Cesar R
ANS Team

--------------------- Cesar R ANS Team

Thank You Cesar.

You have been great help