Search squid archive

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux