Search squid archive

flexible managing of request_body_max_size with squid 2.5.STABLE12

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

 



Hi !

I'm trying to manage a flexible request_body_max_size based on the
destination.
I'm using SLES-10 (64 Bit) with squid 2.5.STABLE12. After reading some
postings here, this should work, but it doesn't. Here is the external
script and the squid.conf configuration. Thanks for help.

/etc/squid/request_body_size.sh:

#!/bin/sh
while read line; do
  set -- $line
  length=$1
  limit=$2
  if [ -z "$length" ] || [ "$length" -le "$2" ]; then
    echo OK
  else
    echo ERR
  fi
done

/etc/squid/squid.conf (a part of it):

external_acl_type request_body %{Content-Length}
/etc/squid/request_body_size.sh acl request_max_20MB external
request_body 20971520 acl upload dstdomain .example.domain.de
http_access allow upload request_max_20MB request_body_max_size 2 MB


Related postings:
http://www.squid-cache.org/mail-archive/squid-users/200501/0078.html
http://cvs.squid-cache.org/mail-archive/squid-users/200606/0377.html
http://cvs.squid-cache.org/mail-archive/squid-users/200606/0409.html



Regards,

Markus



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

  Powered by Linux