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?



--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-3-4-0-2-url-rewrite-perl-script-100-CPU-tp4665089.html
Sent from the Squid - Users mailing list archive at Nabble.com.

Reply via email to