Re: [squid-users] squid rewrite feature ... help

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 21 Nov 2008 11:01:18 +1300 (NZDT)

> chudy fernandez wrote:
>> # TAG: rewrite
>> i've tried
>> rewrite %301:http://www.google-analytics.com/__utm.gif utm
>> doesn't work.
>> whats missing?
>>
>
> Wow. That's a vague question.
>
> What version of Squid are your using (apparently this directive is only
> available in the Squid 2 development release)?
> How is the ACL utm defined (preferably in context)?
> What is your testing methodology?
> Finally, what leads you to believe it "doesn't work"?
>
> Chris
>

http://www.squid-cache.org/Doc/config/rewrite/
And yes, its only available in squid-2.HEAD (2.8 alpha) code

The % only refers to the sub-codes _inside_ the URL for replacement.

As an example.

  rewrite 301:http://%rh/__utm.gif utm

redirect requests matching utm ACL to __utm.gif at the same domain as
client requested. So many domains can match this and be individually
redirected to their own __utm.gif files.

Amos
Received on Thu Nov 20 2008 - 22:01:24 MST

This archive was generated by hypermail 2.2.0 : Fri Nov 21 2008 - 12:00:03 MST