[squid-users] ERROR: URL-rewrite

Amos Jeffries squid3 at treenet.co.nz
Tue Sep 30 03:38:39 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 29/09/2014 10:39 p.m., Alejandro Martinez wrote:
> Hi
> 
> I'm geting this error in cache.log
> 
> ERROR: URL-rewrite produces invalid request: GET ERR HTTP1.0
> 
> This error gives me with squidGuard (1.4).
> 
> I have tested a simple redirector in php to check the new helper
> interface (The actual version of squid is 3.3.13), and It gives me
> the same message
> 
> Squid Cache: Version 3.3.13 configure options:  '--enable-icmp'
> '--enable-delay-pools' '--enable-icap-client' '--disable-wccp'
> '--disable-wccpv2' '--enable-ssl' '--enable-forw-via-db'
> '--disable-epoll' '--disable-http-violations' 
> '--enable-linux-netfilter' '--enable-follow-x-forwarded-for' 
> '--enable-ssl-crtd' '--enable-url-rewrite-helpers'
> 
> the redirector code is this (code taken from squid site):
> 
> $temp = array(); stream_set_timeout(STDIN, 86400);
> 
> while ( $input = fgets(STDIN) ) { $temp = split(' ', $input); $url
> = $temp[0]; if ( $url == "http://www.google.com" ) { echo "OK
> rewrite-url=http://192.168.1.10/block.php \n"; } else { echo "ERR
> \n"; } }
> 
> Thanks

Squid-3.3 does not support new features added in Squid-3.4.
If you are going to test the new protocol, you need to test it with a
version of Squid that supports it.

Amos

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJUKiW/AAoJELJo5wb/XPRjH/cH/ApJlNMT34srQ0ZRsHZcLFHm
yFsKTudrxvx6w1BWCq05kHfTZjjK62TpeQeFX8nUcrSIysUJl6vgYOHt/7UX5SSM
15BEkqY3GE6lknV/LO9Xr44YMIhiVkU9J/U2DiKNi9SYzRzVOJLNzgXGljNJIt7t
fQENCxJF9Kry15+bQasf5apclCMsthiZ8dTszgrlBbcUCWrLrKuGicZrT8jC0J7C
kAhoHFbrcxQVUE8OS6IZJIeRh6MZi4QXh8Yi1hZNy3Cn3Y7Vdxx4wKvQzS7QtaSY
Kv6ppjhzaRGFOoIcr9EuWr6eviyRAXf+oulOJYUJTjnxzZAkkkrPk+x3tXFqybk=
=OE3x
-----END PGP SIGNATURE-----


More information about the squid-users mailing list