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

URI filtering on ACE 4710 (A3(2.0))

melchib
Level 1
Level 1

Hi,

Is it possible to create a class-map/traffic-policy to filter on the URI of a web site? For example let's say I'm hosting both www.ab.com and www.xy.com - both on port 80 of a server. I have to allow port 80, but only want to allow www.ab.com.

Is it as simple as:

(config)# class-map type http inspect HTTP_INSPECT_L7CLASS

host1/Admin(config-cmap-http-insp)# match url www/ab/com/*

Any help would be appreciated!

1 Accepted Solution

Accepted Solutions

Gilles Dufour
Cisco Employee
Cisco Employee

Actually www.ab.com is not a url but a hostname.

The url would be the portion after the hostname starting with the first '/'.

So, your class-map need to match on hostname.

switch/Admin(config)# class-map type http loadbalance Host-AB

switch/Admin(config-cmap-http-lb)# match http header Host header-value www.ab.com

Gilles.

View solution in original post

2 Replies 2

Gilles Dufour
Cisco Employee
Cisco Employee

Actually www.ab.com is not a url but a hostname.

The url would be the portion after the hostname starting with the first '/'.

So, your class-map need to match on hostname.

switch/Admin(config)# class-map type http loadbalance Host-AB

switch/Admin(config-cmap-http-lb)# match http header Host header-value www.ab.com

Gilles.

Ahh...thanks Giles. Very much appreciated!