cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1051
Views
0
Helpful
2
Replies

Configure Regular Expression on Cisco ACE

cannone78
Level 1
Level 1

Hi all,

I need to configure a load balance based on url filtering:

All the traffic sent to https://home/can should be load balanced on a group of server (eg. x1, x2, x3); while all the traffic sent to https://home/can/<any-sub-directory> should be load balanced on other server (ex. X4 X5).

My question is: how can I configure correct url regular expression to correctly filter  the two above url?

I'm thinking something like this but I'm not sure if I on the right way:

Many thanks in advance for your support

Gianluca

2 Replies 2

Marwan ALshawi
VIP Alumni
VIP Alumni

You can create two Class maps type https and specify something like the bellow 

(config)# class-map type https inspect HTTP_INSPECT

(config-cmap-http-insp)# match header Host header-value 

.*home/can

For the second one make it like 

 match header Host header-value 

.*home/can.*

Many thanks for your answer very clear.

Only the last doubt: since the directory 'can' of my path could change, If I need to make two generic filter without specify the exact name:

  1. https://home/ --> to server x1,x2,x3
  2. https://home//sub-directory   ---> to server x4,x5

For the 1st filter, can I configure somethink to filter a generic directory excluding subdirectory?

Something like https://home/*/

Many thanks for you support.

Gianluca

Review Cisco Networking for a $25 gift card