[squid-users] RE:some error Re: [squid-users] help a regular expressions

From: bend chen <boy2eye@dont-contact.us>
Date: Mon, 14 Aug 2006 13:16:24 +0800 (CST)

hi,squid

I used this

acl abc_com dstdomain .abc.com
acl html Content-Type text/html
no_cache deny abc_com html

have some error:
2006/08/14 13:02:40| aclParseAclLine: Invalid ACL type
'Content-Type'
FATAL: Bungled squid.conf line 55: acl html
Content-Type text/html
Squid Cache (Version 2.5.STABLE14-20060530):
Terminated abnormally.

----------------
see :
>acl abc_com dstdomain www.abc.com
>acl html content_type text/html
>cace deny abc_com html

is the best way.
:)

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

                
___________________________________________________________
ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä-3.5GÈÝÁ¿£¬20M¸½¼þ£¡
http://cn.mail.yahoo.com
Received on Sun Aug 13 2006 - 23:16:42 MDT

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