On 7/03/2014 2:59 p.m., PSA4444 wrote: > Hi, > > I have been using a url_rewrite helper on Squid Cache: Version 3.2.5, Ubuntu > 12.04 and it's been working fine. > I'm not trying to use the exact same script on Squid Cache: Version 3.4.0.2, > CentOS 6 and having issues. > > squid.conf line: > url_rewrite_program /etc/squid/url_rewrite.pl > > url_rewrite.pl file: > > #!/usr/bin/perl -p > BEGIN { $|=1; } > s%^http://xxx.yyy/api%https://zzz.aaa/api% && next; > s%^http://xxx.yyy/api%https://zzz.aaa/api% && next; > > ## > On the new server, squid runs at 100% CPU usage when I try to enable it and > sites don't load. > I have given the url_rewrite script 755 permissions as on the other server > and it works fine when run in the terminal. > > Any ideas? > 3.4 brings changes to the helper protocol syntax. There were some parsing issues in the betas. Please try an upgrade to the 3.4.3 release, most of the teething problems have been resolved there. Please also note that the helper was not sending back to Squid valid response syntax to begin with. Responses to 3.2 should have been either a blank line or just the new URL. The extra text sent on teh end of the request lines should NOT be echoed back out at Squid. Amos