08-04-2013 12:59 AM
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
Appreciate if you can guide if this is possible to be done and Cisco 11503 do the same
Thanks
Solved! Go to Solution.
08-09-2013 03:36 PM
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
08-05-2013 10:58 AM
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
08-05-2013 01:05 PM
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
08-09-2013 03:36 PM
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
08-13-2013 02:43 AM
Thank You Cesar.
You have been great help
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide