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

From: Henrik Nordstrom <[email protected]>
Date: 04 Apr 2003 20:14:23 +0200

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=Comment
If you need commercial Squid support or cost effective Squid and
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, [email protected]
Received on Fri Apr 04 2003 - 11:14:29 MST

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