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
Received on Fri Aug 31 2007 - 07:27:48 MDT
This archive was generated by hypermail pre-2.1.9 : Sat Sep 01 2007 - 12:00:04 MDT