Redirector Problem

From: Eugene Miretskiy <eugene@dont-contact.us>
Date: Wed, 02 Feb 2000 12:55:03 -0500

Hello,

I'm trying to run squid in http accelarator mode. If I use this simple
perl program to handle redirects:
  #!/usr/local/bin/perl
  $|=1;
  while (<>) {
    print, next if($_ =~ s|206\.112\.34\.97\/|206\.112\.34\.106\/www\/|o);
    print;
  }
everything works fine.

However, when I try to use jesred, I get access denied error and forwarding loop
message in cache.log

Here is a rule from rederect.rule file:
   regex ^http://206\.112\.34\.97/(.*)$ http://206.112.34.106/www/\1

Here is a line from rewrite.log file showing that above rule works:
  949513345.955 206.112.34.97/-
http://206.112.34.97/search.php?scope=kill+me+now
http://206.112.34.106/www/search.php?scope=kill+me+now 1
  
This is the message that I get in cache.log file:
   2000/02/02 12:42:25| WARNING: Forwarding loop detected for:
   GET /www/search.php?scope=kill+me+now HTTP/1.0
   User-Agent: Mozilla/4.61 [en] (X11; I; FreeBSD 3.3-RELEASE i386)
   Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
   Accept-Encoding: gzip
   Accept-Language: en, ru
   Accept-Charset: iso-8859-1,*,utf-8
   Via: 1.0 www.longisland.com:80 (Squid/2.3.STABLE1)
   X-Forwarded-For: 206.112.33.88
   Host: 206.112.34.97
   Cache-Control: max-age=300
   Connection: keep-alive

I'm new to squid, so any help/hints/suggestions would be greatly appreciated.

-- 
  Eugene Miretskiy <eugene@invision.net>
  InVision.com, INC.  (516) 543-1000
  www.invision.net  /  www.longisland.com
`
Received on Wed Feb 02 2000 - 15:18:30 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:55 MST