12-18-2008 07:48 AM
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!
Solved! Go to Solution.
12-19-2008 01:20 AM
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.
12-19-2008 01:20 AM
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.
12-19-2008 07:15 AM
Ahh...thanks Giles. Very much appreciated!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide