hi my name yunchouljung in korea
i have a question about ACE module.
i want to use URL based Cache Redirection
ACE must redirect only a .GIF and .JPG Image file to Cache Server.
But Cache Server Cached a .PNG, .swf, and so on in a cache server log
SO i asked that any other missed configuration blow.
reqular expression or any other.
and in congiguration .*.gif "*" is a asterisk is right?
my configuration is below.
class-map type http loadbalance match-any L7SLBCLASS
2 match http url .*\.gif
3 match http url .*.gif
4 match http url .*[.]gif
policy-map type loadbalance first-match L7SLBPOLICY
serverfarm Cache_FARM backup BYPASS
policy-map multi-match L7SLB_POLICY
loadbalance vip inservice
loadbalance policy L7SLBPOLICY
interface vlan 80
ip address 192.168.80.1 255.255.255.0
access-group input PERMIT_ALL
access-group output PERMIT_ALL
service-policy input MGMT
service-policy input L7SLB_POLICY
the regular expression is ok.
The problem is that by default persistence rebalance is turned off on ACE.
Since a TCP connection contains multiple HTTP requests and by default only the first one is used to decide where to forward the traffic, you can get any type of requests going to your caches.
The solution is to enable persistence rebalance with a parameter-map.
parameter-map type http HTTP-PARAM
Then apply this parameter-map to your multimatch policy.