Search squid archive

Re: Squid proxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2009-03-06, Merdouille <jgerhards@xxxxxxxxxxxxxxxxx> 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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux