Re: [squid-users] help a regular expressions

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Mon, 14 Aug 2006 06:01:51 +0200

mån 2006-08-14 klockan 09:11 +0800 skrev bend chen:

> I think ues this :
> acl dencache urlpath_regex -i www.abc.com/*.html$ ??
> this right? but .....i feel this is wrong...

almost, only the wrong acl and incorrect regex syntax..

acl dencache url_regex -i http://www\.abc\.com/.*\.html$
cache deny dencache

or be smart and split it in two..

acl abc_com dstdomain www.abc.com
acl html content_type text/html
cace deny abc_com html

abc_com can be replaced by a bigger ACL if there is many sites you need
to do this on.

Regards
Henrik

Received on Sun Aug 13 2006 - 22:01:56 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Sep 01 2006 - 12:00:02 MDT