Search squid archive

squid crashing while trying use url_rewrite_program

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

 



Hi,

I am using squid 2.7, I want to redirect my url www.google.com to www.m.google.com. To
do this I have tried adding this line in squid.conf " url rewrite_program
/etc/squid/redirect.pl " and the redirect.pl file is as follows.

#!/usr/bin/perl
$|=1;
while (<>) {
    @X = split;
    $url = $X[0];
    if ($url =~ /^http:\/\/www\.google\.com/) {
        $url =~ s/google/m.google/;
        print "$url\n";
    } else {
        print "$url\n";
    }

After adding the line in squid.conf if try to start to start squid it is crashing with
the following messages. I tried googling to figure out. But most of them are used
squidguard, I could not find the solution in FAQ. Kindly help me if I am doing anything
wrong. 


jyothi@jyothi-laptop:~$ sudo squid -N -d 1
2010/05/16 11:34:53| Starting Squid Cache version 2.7.STABLE6 for i386-debian-linux-gnu...
2010/05/16 11:34:53| Process ID 8567
2010/05/16 11:34:53| With 1024 file descriptors available
2010/05/16 11:34:53| Using epoll for the IO loop
2010/05/16 11:34:53| Performing DNS Tests...
2010/05/16 11:34:53| Successful DNS name lookup tests...
2010/05/16 11:34:53| DNS Socket created at 0.0.0.0, port 57386, FD 6
2010/05/16 11:34:53| Adding nameserver 203.200.230.244 from /etc/resolv.conf
2010/05/16 11:34:53| Adding nameserver 202.54.29.5 from /etc/resolv.conf
2010/05/16 11:34:53| helperOpenServers: Starting 5 'redirect.pl' processes
2010/05/16 11:34:53| User-Agent logging is disabled.
2010/05/16 11:34:53| Referer logging is disabled.
2010/05/16 11:34:53| logfileOpen: opening log /var/log/squid/access.log
2010/05/16 11:34:53| Unlinkd pipe opened on FD 16
2010/05/16 11:34:53| Swap maxSize 102400 + 8192 KB, estimated 0 objects
2010/05/16 11:34:53| Target number of buckets: 425
2010/05/16 11:34:53| Using 8192 Store buckets
2010/05/16 11:34:53| Max Mem  size: 8192 KB
2010/05/16 11:34:53| Max Swap size: 102400 KB
2010/05/16 11:34:53| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2010/05/16 11:34:53| logfileOpen: opening log /var/log/squid/store.log
2010/05/16 11:34:53| Rebuilding storage in /var/spool/squid (DIRTY)
2010/05/16 11:34:53| Using Least Load store dir selection
2010/05/16 11:34:53| Set Current Directory to /var/spool/squid
2010/05/16 11:34:53| Loaded Icons.
2010/05/16 11:34:53| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 18.
2010/05/16 11:34:53| Accepting ICP messages at 0.0.0.0, port 3130, FD 19.
2010/05/16 11:34:53| HTCP Disabled.
2010/05/16 11:34:53| WCCP Disabled.
2010/05/16 11:34:53| Ready to serve requests.
2010/05/16 11:34:53| WARNING: url_rewriter #1 (FD 7) exited
2010/05/16 11:34:53| WARNING: url_rewriter #2 (FD 8) exited
2010/05/16 11:34:53| WARNING: url_rewriter #3 (FD 9) exited
2010/05/16 11:34:53| Too few url_rewriter processes are running
FATAL: The url_rewriter helpers are crashing too rapidly, need help!























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

  Powered by Linux