I have two servers to be balanced on port 80, but I received a request, from the team that makes the maintenance of these servers, to when anyone introduce a specific url, the access is always made through the same server.
This can be done? I have to use the match http url, or is it better to use the match http header?
I mean - do they ask if URL = http://XXXX.com that traffic always need to go to server #1
or they ask if URL = http://XXXX.com - traffic can go to any server first but then must sticky to this server.
With first case I'd say the best way is just to create separate serverfarm, place there this server #1 and then use match http url class in level 7 policy map (assuming that host part is the same and resolved to the same VIP)
In second case - different options are available and it's better to clarify, but generally - it can be the same + some kind of stickiness.
In this case your first idea about url matching is absolutely correct.
L7 class map
class-map type http loadbalance L7-C
match http url /123
than you have serverfarm S1 which contains both of your servers and serverfarm S2 with contains only server #1
then in L7 policy map :
policy-map type load fir L7-p
And than use it for necessary VIP
One note regarding URL matching (from my experience it's quite often confusing
E.g. you have url in your browser like: http:/myweb.com/test/test.php
however when browser opens a connection - this URL can't be seen anywhere, it will be used like this :
-IP address of myweb.com will be determined and used in L3 header
- in L7, http header this part myweb.com will be used in header field "Host"
- this part /test/test.php will be placed in GET request , like GET /test/test.php HTTP1.1 (e.g.)
So, url matching in ACE actually matches part which is in GET field , so you can't put there something like http://myweb.com/test/test.php, as host part is never in GET field. And actually URL as we see it in browser is never sent.
Introduction This article will help you understand the steps on how to
download the UCS licenses from the Cisco Systems website and then
installing it on the UCS. The redacted (blue lines) just covers up
certain numbers for privacy please do not take them...
Introduction This article will help you understand and educate the
customer on how to clear their "expired licenses"
(license-graceperiod-expired) from their UCS-M. If a customer just
purchased a license and needs a step by step guide on how to download
Introduction Prepositioning is a powerful tools on the WAAS platform but
it is not always easy to figure out why your jobs are failing when
trying to retrieve the files.Here is a method that should help you to
figure out the reason why they are not succes...