08-12-2014 11:54 AM
I have an existing policy-map with vip and port 80. Now I need to do:
1. Match pool of ip address and url /abc then redirect to url /abc1
2. If url is ok but ip is out of the pool then redirect to url /abc2
It's probably possible to achieve but I have problem with mixing class maps (L4 and L7). Please advice how to do it.
Thank you.
08-12-2014 12:33 PM
HI Kamil,
Something like below. Please try and let me know if it helps.
rserver redirect red
webhost-redirection www.abc1.com
inservice
rserver redirect red1
webhost-redirection www.abc2.com
inservice
serverfarm redirect red
rserver red
inservice
serverfarm redirect red1
rserver red1
inservice
class-map type http loadbalance match-all url
2 match http url abc
4 match source-address 2.2.2.2 255.255.255.0
class-map type http loadbalance match-all url1
2 match http url abc
policy-map type loadbalance first-match url
class url
serverfarm red
class url1
serverfarm red1
class class-default
serverfarm xxxx
Regards,
Kanwal
Note: Please mark answers if they are helpful
08-12-2014 12:37 PM
Hi Kanwal, it looks ok. Thank you,
In this configuration is it possible to somehow secure the serverfarm which redirects to url /abc1 from someone who will try entering http://myserver/abc1 directly?
08-13-2014 07:13 AM
Hi Kamil,
If user comes directly then it will match the VIP and class-map condition and would be loadbalanced to a different serverfarm. Any user coming with /abc will be redirected.
Regards,
Kanwal
Note: Please mark answers if they are helpful.
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