[squid-users] ERROR: URL-rewrite
Alejandro Martinez
ajm.martinez at gmail.com
Mon Sep 29 09:39:32 UTC 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20140929/68eb7b08/attachment.html>
More information about the squid-users
mailing list