Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

URI filtering on ACE 4710 (A3(2.0))

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
Cisco Employee

Re: URI filtering on ACE 4710 (A3(2.0))

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.

2 REPLIES
Cisco Employee

Re: URI filtering on ACE 4710 (A3(2.0))

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.

New Member

Re: URI filtering on ACE 4710 (A3(2.0))

Ahh...thanks Giles. Very much appreciated!

157
Views
0
Helpful
2
Replies