06-21-2008 06:13 PM
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
class L7SLBCLASS
serverfarm Cache_FARM backup BYPASS
class class-default
forward
policy-map multi-match L7SLB_POLICY
class WEB
loadbalance vip inservice
loadbalance policy L7SLBPOLICY
interface vlan 80
description Client_LAN
ip address 192.168.80.1 255.255.255.0
no icmp-guard
access-group input PERMIT_ALL
access-group output PERMIT_ALL
service-policy input MGMT
service-policy input L7SLB_POLICY
no shutdown
Solved! Go to Solution.
06-22-2008 09:57 PM
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
persistence-rebalance
Then apply this parameter-map to your multimatch policy.
Gilles.
06-22-2008 09:57 PM
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
persistence-rebalance
Then apply this parameter-map to your multimatch policy.
Gilles.
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