Re: [squid-users] acl rep_header for Content_Length

From: Mehdi Sarmadi <msarmadi@dont-contact.us>
Date: Sun, 3 Sep 2006 12:32:49 +0330

Dear

  This combination worked for me(for test):

acl lessthan3MB rep_header Content-Length ^(1|2)?+[0-9]{0,6}$
http_reply_access allow lessthan3MB
http_reply_access deny all

  I guess the rep_header acl type is only effective when is used with
http_reply_access and not with others.

  Hope it helps

Regards

--
Mehdi Sarmadi
On 8/31/06, lopl <lopl@douran.com> wrote:
> Dear
>
> I found an acl (rep_header) useful, to prevent sending bigfiles to
> icap_server. for example 3 MB .
>
> this config line was added.
> acl test rep_header Content-Length ^(1|2)?+[0-9]{0-5}$
> icap_access s1 allow test
> icap_access s1 deny all
>
> but unfortunately all of downloaded files were denied .
>
>
>
> where is the error?
>
> thanks for your help
>
>
>
-- 
Mehdi Sarmadi
Received on Sun Sep 03 2006 - 03:02:52 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Oct 01 2006 - 12:00:03 MDT