Search squid archive

Re: squid rewrite feature ... help

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

 



> 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



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

  Powered by Linux