Re: [squid-users] images don't display after redirecting

From: Mack <RAGAN_DAVIS@dont-contact.us>
Date: Fri, 04 Apr 2003 14:14:39 -0500

I replaced "exit;" with "next;", and this just created a loop.

On 4 Apr 2003 at 20:14, Henrik Nordstrom wrote:

> This is because you are crashing the redirector helper on the first
> request for www.somewhere.com, which will quickly cause Squid to
> restart.. (see cache.log)
>
> Replace exit with next and things should work a lot better...
>
> Regards
> Henrik
>
>
> fre 2003-04-04 klockan 18.01 skrev Mack:
> > Hi!
> >
> > I have a simple perl script adapted from the ones shown at
> > squid-cache.org. It redirects to 301:http://www.somewhere.com. The
> > redirection works fine now. However, the default page on
> > www.somewhere.com has links to images. These images are not
> > displayed, instead there's a placeholder with an X on it. The path
> > to the images is a relative one (images/arrow.gif).
> >
> > If I use squidGuard for redirection instead, then I CAN see the
> > images.
> >
> > Here's the perl script I use:
> >
> > #!/usr/bin/perl
> > $|=1;
> >
> > while (<>)
> > {
> >
> > @X = split;
> > $url = $X[0];
> >
> > if ($url =~ /^http:\/\/www\.somewhere\.com/)
> > {
> > exit;
> > }
> > else
> > {
> > print "301:http://www.somewhere.com\n";
> > }
> > }
> >
> >
> > Thanks!
> > mack
>
>
> --
> Free Squid-users support provided by Henrik Nordström
> <hno@squid-cache.org> PayPal donations welcome if you consider my Free
> Squid support helpful.
> https://www.paypal.com/xclick/business=hno%40squid-cache.org&cn=Commen
> t
>
> If you need commercial Squid support or cost effective Squid and
> firewall appliances please refer to MARA Systems AB, Sweden
> http://www.marasystems.com/, info@marasystems.com
>
Received on Fri Apr 04 2003 - 12:14:51 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:14:41 MST