Re: [squid-users] custom error msg

From: Chris Robertson <crobertson_at_gci.net>
Date: Mon, 16 Feb 2009 12:26:35 -0900

Amos Jeffries wrote:
> Arun Shrimali wrote:
>> Dear All,
>>
>> I am using Squid 3.0 Stable 7 on FC9, with NCSA auth which is working
>> fine.
>>
>> I have restricted the users (iu) on particular time (2-3 pm and 5-7
>> pm) and at this time I want show the custom error. Here is my acl for
>> review
>>
>> acl iu proxy_auth "etc/squid/iu.txt"
>>
>> acl resonethrs1 time M T W H F A 14:00-15:00
>> acl resonethrs2 time M T W H F A 17:00-19:00
>>
>> deny_info ERR_TIME resonethrs1
>> deny_info ERR_TIME resonethrs2
>> http_access allow iu !resonethrs1 !resonethrs2
>>
>> but instead of custom error user is getting standard error.
>>
>> Can any body help me how to configure the custom error.
>>
>> regards
>>
>> Arun
>
> * First the http_access is not performing a denial.
>
> - line matches and clients are ALLOWED through (no error page displayed)
> - line does not match, squid will keep looking elsewhere for a reason
> to deny or allow (again no error page displayed).
>
> Try this:
> acl resonethrs time M T W H F A 14:00-15:00
> acl resonethrs time M T W H F A 17:00-19:00
> deny_info ERR_TIME resonethrs
> http_access allow iu resonethrs

This line should be "http_accesses deny iu resonethrs".

>
> Amos

Chris
Received on Mon Feb 16 2009 - 21:26:49 MST

This archive was generated by hypermail 2.2.0 : Tue Feb 17 2009 - 12:00:02 MST