cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
538
Views
0
Helpful
1
Replies

ACE URL based Loadbalance

yunchouljung
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

Gilles Dufour
Cisco Employee
Cisco Employee

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.

View solution in original post

1 Reply 1

Gilles Dufour
Cisco Employee
Cisco Employee

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.