From: Thor Kopp (thorkopp@googlemail.com)
Date: Sat May 24 2008 - 08:39:59 ART
Correct, even though you specify anything after the /, nbar strips that and
only matches the host portion of your string so with your second statement
you would match anything from www.cisco.com regardless of what directory it
came from.
From the doc url
Host specification is identical to URL specification. NBAR performs a
regular expression match on the host field contents inside an HTTP packet
and classifies all packets from that host. For example, for the URL
www.cisco.com/latest/whatsnew.html, include only www.cisco.com.
- Thor
On Sat, May 24, 2008 at 12:24 PM, Joseph Brunner <joe@affirmedsystems.com>
wrote:
> Im not behind my 2811 right now, but I don't expect the second one to work.
>
> The http host feature identifies the site, while the directory identifies
> the content on that host. I have never seen both work in the one host line.
>
> -Joe
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
> ccie
> Sent: Saturday, May 24, 2008 6:59 AM
> To: 'Cisco certification'
> Subject: What would be the difference between these two class-maps
>
> Experts,
>
>
>
> What would be the difference between these two class-maps
>
>
>
> class-map match-all TEST
>
> match protocol http host "www.XYZ.com <http://www.xyz.com/>"
>
> match protocol http url "/directory/"
>
>
>
> vs
>
>
>
> class-map match-all TEST
>
> match protocol http host "www.XYZ.com/directory<http://www.xyz.com/directory>
> "
>
>
>
>
>
> Regards,
>
> Amin
>
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Mon Jun 02 2008 - 06:59:18 ART