Re: [squid-users] replace gif with local gif

From: Adrian Chadd <adrian_at_freebsd.org>
Date: Sat, 19 Jul 2008 21:24:22 +0800

You should talk to whoever looks after jesred.

But basically, you want to write a URL rewrite helper which does something like:

#!/usr/bin/perl -w

use strict

# I think this means "line-buffered" .. :)
$| = 1;

while (<>) {
    s/http:\/\/www.google.com/logo.gif/http:\/\/www.yoursite.com/image.png/;
    print;
}

Adrian

2008/7/18 Wesley MOUEDINE ASSABY <wesley-m_at_wanadoo.fr>:
> Hello,
>
> I va installed squid 2.6 on a machine (openbsd 4.3) , i ve also installed :
> jesred 1.2.1
> The proxy cache works well. What i want : when a user use for example
> google.fr, it replaces gif images with our logo (logo.gif)
> Someone can help me please ?
> thank's
Received on Sat Jul 19 2008 - 13:24:24 MDT

This archive was generated by hypermail 2.2.0 : Sat Jul 19 2008 - 12:00:03 MDT