Re: [squid-users] Bungled squid.conf line - reply_body_max_size

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 08 Oct 2008 21:47:12 +1300

Лесовский Алексей wrote:
> Amos Jeffries пишет:
>> Лесовский Алексей wrote:
>>> Hello ALL, and Sorry my English.
>>> I have line in squid.conf
>>> ...
>>> reply_body_max_size 1228800 deny asu
>>> ...
>>> and when squid starts, I got error
>>> FATAL: Bungled squid.conf line 65: reply_body_max_size 1228800 deny asu
>>> Squid Cache (Version 3.0.STABLE8): Terminated abnormally.
>>>
>>> I don't understand, why?
>>>
>>
>> The line logged above that fatal should say what is wrong. I this case
>> there are no units listed ('deny' is not a known measure of size).
>>
>> The format of that line is:
>>
>> reply_body_max_size <size> <units> [acl ...]
>>
>> ie.
>>
>> reply_body_max_size 1228800 bytes deny asu
>>
>>
>> Amos
> OK, now is work if I make
>
> reply_body_max_size 1228800 bytes <acl>
>
> but I want denying or allowing access for ACL's
>
> ie.
> reply_body_max_size 1228800 bytes <deny/allow> <ASU>
>

deny/allow word does not make much sense there.

for example:
  "max 16 KB allow X" would actually means deny some requests!
  "max 16 KB deny all" would actually means allow all requests!

To stop confusion it works like this:

  - test ACLs for a match
  - if match found, check request is smaller than size
      - if request is bigger than max size block it
      - let any objects smaller than max through
  - if no match found, check next reply_body_max_size entry
  - let any requests that are not capped through

Amos

-- 
Please use Squid 2.7.STABLE4 or 3.0.STABLE9
Received on Wed Oct 08 2008 - 08:47:17 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 08 2008 - 12:00:02 MDT