03-26-2015 06:44 AM
Hi,
I have received a request to forward traffic based on http header; specifically if the header contains www.sample.co.uk it should go to its regular serverfarm, if it contains www.sample.co.uk/wordpress it should go to a different serverfarm, probably containing a single server - the wordpress server.
My first question is - is this even possible with the ACE? If so, does anyone have a sample config they could post here?
Lastly although there are answers to similar questions before I do appreciate any help anyone can give me as I don't have much time on the ACE, and they are pretty critical to our company, i.e. I will be taken out the back and shot if I cause an outage.
I can post detailed existing config if required.
Best wishes
Mike
03-26-2015 12:01 PM
Hi Mike,
Can't let you get shot then huh:)
class-map match-all WWW-VIP
2 match virtual-address 20.20.20.10 tcp eq www---->This 20.x.x.x should resolve to normal url
class-map type http loadbalance match-any wordpress
2 match http url /wordpress
policy-map type loadbalance first-match SLB_LOGIC
class wordpress
serverfarm wordpress
class class-default
serverfarm WWW-FARM
policy-map multi-match CLIENT_VIPS
class WWW-VIP
loadbalance vip inservice
loadbalance policy SLB_LOGIC
loadbalance vip icmp-reply
Above configuration will ensure that www.sample.co.uk/wordpress goes to serverfarm wordpress and everything else is sent to WWW-FARM or whatever the farm(regular) you want it to go.
Let me know if you have any questions.
Regards,
Kanwal
Note: Please mark answers if they are helpful.
05-18-2015 06:08 AM
Hi Kanwal,
Just checking my status on the forum and saw I left this one hanging - sorry.
Unfortunately I have not been able to implement this as the business no longer need this requirement.
I am going to mark as correct anyway as I learnt something out of it, and it was therefore very helpful!
Best wishes
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