RE: [squid-users] deny_info not working

From: Chris Robertson <crobertson@dont-contact.us>
Date: Mon, 28 Mar 2005 09:31:11 -0900

> -----Original Message-----
> From: saravanan ganapathy [mailto:sarav_gsa@yahoo.com]
> Sent: Sunday, March 27, 2005 7:37 PM
> To: squid-users@squid-cache.org
> Subject: Re: [squid-users] deny_info not working
>
>
>
> --- Henrik Nordstrom <hno@squid-cache.org> wrote:
>>
>>
>> On Sat, 26 Mar 2005, saravanan ganapathy wrote:
>>
>> > Hai,
>> >
>> > My config looks like
>> >
>> > acl audio-video-ext urlpath_regex -i
>> > \.(mp3|mpeg|avi|wmf|ogg|wav|au|mov)($|\?)
>> >
>> > http_access deny audio-video-ext all
>> > deny_info ERR_NOAUDIO_VIDEO audio-video-ext
>> >
>> > Squid blocks mp3 downloads, but my custom deny
>> > page(ERR_NOAUDIO_VIDEO) is not coming. I have this
>> > file
>> > ERR_NOAUDIO_VIDEO in the correct path where squid
>> > looks.
>>
>> This is because your accesses are denied by the
>> "all" acl.
>>
>> Just take away the "all" acl from your http_access
>> deny line and things
>> should be fine..
>
> If I remove "all" from my acl and it works. It doesn't
> work if I add 'worktime' in my acl as
>
> http_access deny audio-video-ext worktime
>
> Any limitations in deny_info like this?
>
> Sarav

Try "http_access deny worktime audio-video-ext". If I remember correctly,
Squid uses the last acl on an http_access line to determine which deny_info
page to use.

Chris
Received on Mon Mar 28 2005 - 11:32:34 MST

This archive was generated by hypermail pre-2.1.9 : Fri Apr 01 2005 - 12:00:03 MST