Search squid archive

storeurl_rewrite_program not exiting on squid -k rotate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've read the few posts and docs about storeurl_rewrite_program but I still
can't get the storeurl_rewrite_program to exit on "squid -k rotate".

I'm appealing for help to solve this. Below are my configuration options and
the perl script that exits on eof(). What am I doing wrong?


storeurl_access allow all
storeurl_rewrite_program /usr/local/squid/bin/strip_query


# cat /usr/local/squid/bin/strip_query
#!/usr/local/bin/perl

$| = 1;
while (<>)
{
        chomp;
        $_ =~ s/\?.*//g;
        print $_ . "\n";
        exit 0 if eof();
}

# 

And the perms on strip_query script:
# ls -la strip_query
-rwxr-xr-x 1 root root   109 Mar 26 13:13 strip_query


I'm running: 2.7.STABLE2 on RHEL5.2 64bit

Any ideas?

Thanks,
Charlie


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux