[squid-users] Re: Squid proxy

From: Jan-Frode Myklebust <mykleb_at_no.ibm.com>
Date: Fri, 6 Mar 2009 15:57:59 +0100

On 2009-03-06, Merdouille <jgerhards_at_r-advertising.com> wrote:
>
> I need to have a squid conf to allow peaople to acces data from url like :
>
> http://mysquidproxy/img=http%3A%2F%2Ffiles.macbidouille.com%2Fnews%2F200903%2FAP999.jpg
> or
> http://mysquidproxy/img=http://files.macbidouille.com/Fnews/200903/AP999.jpg
>
> and i want mysquid to use cache for
> http://files.macbidouille.com/Fnews/200903/AP999.jpg

I recently had a similar problem, but I solved it using apache instead
of squid. Assuming your squid is running on port 3128/tcp, and you have
apache listening on 80/tcp. The following apache-config should do what
you ask (I think):

        ProxyRequests On
        ProxyRemote * http://localhost:3128
        ProxyTimeout 600
        ProxyPreserveHost Off

        RewriteEngine on
        RewriteRule ^/img=http://(.*) http://$1 [L,P]
        

  -jf
Received on Fri Mar 06 2009 - 14:58:58 MST

This archive was generated by hypermail 2.2.0 : Mon Mar 09 2009 - 12:00:01 MDT